Docsity

chapter 6 exercise for lab 12, Exercises of Java Programming

Partial preview of the text

Download chapter 6 exercise for lab 12 and more Exercises Java Programming in PDF only on Docsity!

  1. Draw a table that shows the value of the variables i and n during the execution of loop. The table should contain one column for each variable and one line for each iteration.
  2. Output of the program:  10  5  6  3  4  2

Iteration i n