Advertisement
veronikaaa86

01. Numbers from 1 to 100

May 29th, 2021
584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 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.         Scanner scanner = new Scanner(System.in);
  8.  
  9.         for (int i = 1; i <= 100; i++) {
  10.             System.out.println(i);
  11.         }
  12.  
  13.     }
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement