PRG420 (Version 10) - Week 3 DQ 3- An A++ Work!!!

profileRIETian
 (Not rated)
 (Not rated)
Chat

 

Convert the while loop in the following code segment to a do-while loop:  

Scanner keyboard = new Scanner(System.in);

int x = 1;

while (x > 0)

{

    System.out.print("Enter a number: ");

    x = keyboard.nextInt();

}

    • 10 years ago
    PRG420 (Version 10) - Week 3 DQ 3- An A++ Work!!!
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      prg420_v10_week_3_dq_3.docx