+ 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);

4th May 2019, 4:17 PM
Danish Kamal
Danish Kamal - avatar
2 Respostas
+ 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.
4th May 2019, 4:38 PM
Faisal
Faisal - avatar
0
please kindly go through the SoloLearn C tutorial, you can learn how to use for loop under 30mins
4th May 2019, 5:51 PM
✳AsterisK✳
✳AsterisK✳ - avatar