forloop for printing every number in range(10)
Answers
Answered by
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