Computer Science, asked by rishavkr63, 2 months ago

IF ANYBODY TELLS THE CORRECT ANSWER I WILL MARK YOU AS BRAINLIEST
(WRITE A PROGRAM IN DO WHILE LOOP JAVA TO DISPLAY 10 NATURAL NUMBERS)​

Answers

Answered by JustAnotherRando
0

Answer:

public class unga bunga

{

public static void main(String[] args)

{

int i;

i=1;

System.out.println ("The natural numbers are:\n");

do

{

System.out.println (i);

} while(i<=10;i++)

}

}

edit: I should have read the question carefully, it said do while loop, dum me lol

Similar questions