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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!