Computer Science, asked by umangdhiman451, 4 months ago

write a program in javascript to print first 10 numbers using do while loop

Answers

Answered by adityasharma09
2

Scanner sc=newScanner(System.in) ;

int i=10;

do

{

System.out.println("enter a number");

int a=sc.nextInt();

System.out.println(a);

}

while(i!=11)

Similar questions