Question: Java programminh a-Write a while loop that ensures the user enters a positive integer number (named amount). Prior to the loop, is the code below.

Java programminh

a-Write a while loop that ensures the user enters a positive integer number (named amount). Prior to the loop, is the code below. Write the loop below it.

int amount;

System.out.print (Enter a positive integer: );

amount = scan.nextInt ();

b. Write a for loop to print the multiples of 3 from 300 down to 3 (i.e., 300, 297, 294, etc.), each value on a different line (next line down).

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!