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
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
India Languages,
1 month ago
Business Studies,
1 month ago
Science,
2 months ago
Math,
9 months ago
Environmental Sciences,
9 months ago