Computer Science, asked by adbadwaik, 6 months ago

write a program to print 10 numbers using a while loop .
In java not in python,c,c++,ruby

Answers

Answered by anindyaadhikari13
3

Answer:-

This is a program which prints the first 10 numbers using while loop.

class X

{

public static void main()

{

int a=1;

while(a++<=10)

System.out.print(a+" ");

}

}

Similar questions