Computer Science, asked by sushamashinde0009, 11 hours ago

forloop for printing every number in range(10)

Answers

Answered by gamerforlife123qwe
0

Here 'n variable' could be 10 or could be accepted from the user

System.out.println("The range fron 0 to "+n);

for(int i=0;i<=n;i++)

{System.out.println(i);}

Similar questions