Q:

Java Program to implement Do While Loop Statement

0

Program to implement Do While Loop Statement.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import java.util.*;
import java.lang.*;
import java.io.*;

public class DoWhileLoop
{
         public static void main(String args[])
             {
                  int a=1;
	          do
	            {
                      System.out.println(a);
                           a=a+1; 
                    }
                  while(a<=10);
	            }
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now