galinyotsev123

ProgBasicsJavaBook5.1Loops01numbersFrom1to100

Jan 15th, 2019
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class E01numbersFrom1to100 {
  4. public static void main(String[] args) {
  5. Scanner scanner = new Scanner(System.in);
  6.  
  7. for (int i = 1; i <= 100 ; i++) {
  8. System.out.println(i);
  9. }
  10. }
  11. }
Add Comment
Please, Sign In to add comment