+ 2
Describe each step of execution & give output for the following program segment :
int sum=0, i, j; for (i=1; i<=7; i+=3) { m=1; for (j=1; j<=i; ++j) { m=m*j; } sum+=f; } printf(''Sum=%d'', sum);
2 Answers
+ 5
Hey Danish Kamal !
Is this question by any chance an an assignment for school or whatnot? If so, try to show your attempt at solving it first as so that you avoid having someone else do all the work for you.
0
please kindly go through the SoloLearn C tutorial, you can learn how to use for loop under 30mins