Computer Science, asked by sarkarsneha604, 6 months ago

find the output of a java snippet-
c =0 i=1;
for(;i<=6;)
c=c+ ++i*i++;
System.out.println(c+" "+i);
Plssss help.... ​

Attachments:

Answers

Answered by Imblank
2

Answer:

2 3

18 4

54 6

Read my bio once

Similar questions