Advertisement
Guest User

Untitled

a guest
May 30th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. public static void main(String[] args) {
  2. System.out.println("Unesite broj n");
  3. Scanner input = new Scanner(System.in);
  4. int n = input.nextInt();
  5.  
  6. for(int i=1; i<=n; i++) {
  7. System.out.println();
  8. for(int j=1; j<=i; j++) {
  9. System.out.print(j + " ");
  10. }
  11. }
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement