Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- System.out.println("Unesite broj n");
- Scanner input = new Scanner(System.in);
- int n = input.nextInt();
- for(int i=1; i<=n; i++) {
- System.out.println();
- for(int j=1; j<=i; j++) {
- System.out.print(j + " ");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement