Computer Science, asked by RajaBose, 1 year ago

give output with full steps

Attachments:

Answers

Answered by kvnmurty
1
The output of the given piece of Java program will be as follows.

------------------------------------
 i     Printed    difference
-----------------------------------
20       22 
23       47         +25
26      75          +28
29     106        +31
32     140        +34
35    177         +37
38    217        +40
41    260        +43
44    306        +46
47    355        +49
50    407        +52
=================

Thus the OUTPUT will look like the following line. All numbers are printed on one line.

22 47 75 106 140 177 217 260 306 355 407


kvnmurty: :-)
Similar questions