Do While Loop Example Java

Do While Loop Example Java

Do While Loop Example Java


do while loop example java,java do while break,types of loops in java,how to do a for loop in java,how to make a loop in java


while, do while with input in Java Program

import java.io.*;
class arun
{
public Static void main(String args[]) throws IOException
{
DataInputStream in =new DataInputStream(System.in);
{
int a;
System.out.println("Enter the value of a and b is:");
a=Integer.parseInt(in.readLine());
do
{
System.out.println("\n arun");
a++;
}
while(a<=10);
}
}
}

Post a Comment

0 Comments