program to print first 20 natural numbers
shardul1925:
language
Answers
Answered by
1
public class program {
public static void main(String [] args) {
for(int i=1; i<21;i++) {
System.out.print( i + " ");
}
}
}
Hope it helps;)
public static void main(String [] args) {
for(int i=1; i<21;i++) {
System.out.print( i + " ");
}
}
}
Hope it helps;)
Similar questions