1. Engineering
  2. Electronics Engineering
  3. rewrite the following dowhile loop into java statements that use...

Question: rewrite the following dowhile loop into java statements that use...

Question details

Re-write the following do-while loop into Java statements that use a while loop. 

Your final code should result in the same output as the original code below.

int count = 5;

do {

    System.out.println(count);

    count = count – 1;

} while (count > 0);

 

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution