Question: Write a method named loopInteger with no parameter and no return value. In the method, a while loop is used to print an integer number
Write a method named loopInteger with no parameter and no return value. In the method, a while loop is used to print an integer number (one at a time) starting at -6 decreasing down to -10.
The printout is:
-6
-7
-8
-9
-10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
