Answer :
The program that executes the loop body as long as the user enters a non-negative number is:
import java.util.Scanner;
public class NonNegativeLooper
public static void main (String [] args)
Scanner scnr = new Scanner(System.in);
//initialize the userNum with 8
int userNum = 8;
//Repeat the loop until the userNum is not negative
while (userNum>=0)
System.out.println(Body);
//Prompt the user to enter the userNum again
userNum = scnr.nextInt();
System.out.println(Done);
return;
Hope this helps you the most.
Happy coding