write a program to display the values from 1 to 10 using FOR loop
Answers
Answered by
1
Answer;
class Looping
{
public static void main (string []args)
{
for(int i=1,i<=10,i++)
System.out.println(i);
}
}
Output:
1
2
3
4
5
6
7
8
9
10
Tip;
If you want to print the numbers in one line , don't write 'ln' in the 'println' word of the program given above.
if it helped you please thank me and give me a vote...
Similar questions
Environmental Sciences,
1 day ago
Computer Science,
2 days ago
Hindi,
2 days ago
English,
8 months ago
English,
8 months ago
Math,
8 months ago