Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Pascal Surget
Added: Sep 12, 2018 12:37 PM
Views: 0
  1. public class Sample {
  2.  
  3.     public static void main(String args[]) {
  4.         /* local variable Initialization */        int n = 1, times = 0;
  5.  
  6.         /* do-while loops execution */        do {
  7.             System.out.println("Java do while loops:" + n);
  8.             n++;
  9.         } while (n <= times);
  10.     }
  11. }