Answers for "Example of a Do..While Loop"

0

Example of a Do..While Loop

public class Test {

   public static void main(String args[]) {
      int x = 10;

      do {
         System.out.print("value of x : " + x );
         x++;
         System.out.print("\n");
      }while( x < 20 );
   }
}
Posted by: Guest on August-31-2021

Code answers related to "Example of a Do..While Loop"

Browse Popular Code Answers by Language