Advertisement
myrdok123

01. Numbers from 1 to 100

Mar 30th, 2024
565
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. package ForLoop;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class P01NumbersFrom1To100 {
  6.     public static void main(String[] args) {
  7.  
  8.  
  9.         for (int i = 1; i <= 100; i++) {
  10.  
  11.             System.out.println(i);
  12.         }
  13.  
  14.     }
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement