Answer:
input with 160
output: 40 10 2
Explanation:
import java.util.Scanner;
//Define the class divideFour
public class divideFour
{
public static void main(String[] args)
{
//Declaration of variables as integer
int userNum;
//set an input
userNum = 160;
//Run the while loop until the conditions are not satisfied.
while(userNum>2)
{
//Divide userNum by 4 and store it in the same.
userNum = userNum/4;
//Print the new value of the userNum
System.out.print(userNum+" ");
}
System.out.print("");
}
}