java program to print first 20 natural number in reverse order
Answers
Answered by
6
Program:
import java.io.*;
public class Main{
public static void main(String args[]){
System.out.println("Java program to print first 20 natural numbers in reverse order : ");
for(int i = 20 ; i > 0 ; i--){
System.out.println(i);
}
}
}
Output:
Java program to print first 20 natural numbers in reverse order :
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
----Hope This will help you :)
Similar questions
Social Sciences,
6 months ago
Computer Science,
6 months ago
Science,
1 year ago
Business Studies,
1 year ago