int i=1,j=0,n=0; while(i<4) { for(j=1;j<=i;j++){ n+=1; } i=i+1; } system out.printIn(n); | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 6

int i=1,j=0,n=0; while(i<4) { for(j=1;j<=i;j++){ n+=1; } i=i+1; } system out.printIn(n);

28th Mar 2017, 5:12 PM
Arpit Gupta
Arpit Gupta - avatar
2 Answers
+ 10
What exactly is your question?
28th Mar 2017, 5:13 PM
Caleb Jore
Caleb Jore - avatar
- 5
find output following code fragments
28th Mar 2017, 5:15 PM
Arpit Gupta
Arpit Gupta - avatar