Computer Science, asked by sahilsingh9866, 2 days ago

write a program to display the values from 1 to 10 using FOR loop​

Answers

Answered by triptistarx
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