What is the output of the following C program
#include< void main( ) { int a=2, j=1, s=0; for (j++, a=2; a<10; a + =3) { s=a*a; printf("a=%d \t j="%d s=%d\n" , a, j, s); } } |
---|
Output
|
|
|
---|---|---|
a=2
|
j=2
|
s=4
|
a=5
|
j=2
|
s=25
|
a=8
|
j=2
|
s=64
|
0 comments:
Post a Comment