Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

please help me... this is my problem... input age: if you input (1-8 then remark

ID: 3608649 • Letter: P

Question

please help me...
this is my problem...

input age:
if you input (1-8 then remarks)
if you input(9-15 then remarks)
if you input((16-20 then remarks)
if you input((21-35 then remarks)
if you input((36-45 then remarks)
if you input((46-57 then remarks)
(after inputing the age value the output will be the remarksonly)
any remarks would do...
please help me on this.. my teacher told me about looping
i dont have any idead but i know how to use if else but it neverworks.. plz help
tnks alot godbless you...

Explanation / Answer

please rate - thanks #include #include int main(void) {int n; printf("Enter a number between 1 and 57: "); scanf("%d",&n); while(n>0)     {if(n>=46)          printf("Numbergreater than 45");      else          if(n>=36)            printf("Number between 36 and 45");          else             if(n>=21)                printf("Number between 21 and 35");             else                 if(n>=16)                      printf("Number between 16 and 20");                 else                     if(n>=9)                          printf("Number between 9 and 15");                     else                          printf("Number between 1 and 8");        printf(" Enter a numberbetween 1 and 57: ");        scanf("%d",&n);       }                getch(); }