Advertisement
FidoDidoo100

Cikli6

Dec 13th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.73 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package javaapplication1;
  7.  
  8. import java.util.Scanner;
  9.  
  10. /**
  11.  *
  12.  * @author Iavor
  13.  */
  14. public class JavaApplication1 {
  15.  
  16.     /**
  17.      * @param args the command line arguments
  18.      */
  19.     public static void main(String[] args) {
  20.         // TODO code application logic here
  21.         Scanner sc = new Scanner (System.in);
  22.         int n = sc.nextInt();
  23.        
  24.         for (int i = 1; i<=n; i++) {
  25.             for (int j = i; j<i+n; j++) {
  26.                 System.out.print(j);
  27.             }
  28.             System.out.println();
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement