Compare the upper limit of first range with lower limit of second range.
if(uplfirst > lplsecond)
printf("Overlap");
and same for others.
4
solved Find Out If Number Ranges Overlap in C [closed]
Compare the upper limit of first range with lower limit of second range.
if(uplfirst > lplsecond)
printf("Overlap");
and same for others.
4
solved Find Out If Number Ranges Overlap in C [closed]