include include include include include define MAXNUMS 500 i
     #include   #include   #include   #include   #include   #define MAXNUMS 500  int main(void)  {//the user enters the following numbers (in this order)//30 40 60 70 80 90 25 10  int a;  a = 200;  for (a = 0; a  70)  {scanf (\"%d\", &a;);}  else if (a % 2 == 0)  {a+ = 40;  printf(\"\ \");}  printf (%d\", a);}  system(\"pause\");  return(0);} 
  
  Solution
Iteration 1 : a=0
 - a=0
 - else if is true
 - now a = 40
 - print new line
 - print a=40
Iteration 2: a=40
 -a=41after increment
 - if is false
 -else if is false
 - print a=41
Iteration 3 : a=41
 - a=42 after increment
 -if is false
 - else if is true
 - a=a+40=82
 -print newline
 -print a=82
Iteration 4 : a=82
 - a=83 after increment
 - if condition is true
 -get a from user 30
 - print a=30
Iteration 5 : a=30
 - a=31 increment after
 -else if is true
 - a=71
 - print new line
 -print a
Iteration 6: a=71
 -a=72
 - if executes
 - input a=40
 -print a=40
These are for only 6 iterations and this continues so on upto the user enters all the output mentioned in comments

