while, do while with input in Java Program
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);
}
}
}
0 coment�rios:
Post a Comment