Question: I am getting a start and limit value from the user and checking to make sure that the number is between 1 and 100. If

I am getting a start and limit value from the user and checking to make sure that the number is between 1 and 100. If these values are not between 1 and 100 I ask the user to enter another number. If they are in between then I print the value from start to limit. When I run the code I am getting issues with checking my start and limit values. Also, when I put in a wrong limit it brings me back to enter in a start value. It also only works with some numbers but not any number between 1 and 100.

I am getting a start and limit value from the user and

NPOL 0 Jan WNE wwwwwwwwNNNNNNNNNNPPPPPPPPPP 1 finclude 2 3 int main(void) 4 5 int start; 6 int limit; 7 int num; 8 9 printf ("Enter Start: "); 10 scanf("%d", &start); 11 12 printf ("Enter Limit: "); 13 scanf("%d", &limit); 14 15 for (start=0; start i || start>100:) 16 { 17 printf ("Enter another Start: "); 18 scanf("%d", &start); 19 } 20 21 for (limit=0; limit100:) 22 { 23 printf("Enter another Limit: "); 24 scanf("%d", &limit); 25 } 26 27 for (num=start;num

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!