Advertisement
Guest User

Untitled

a guest
Jul 10th, 2019
625
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4. public static void main(String[] args) {
  5. Scanner sc = new Scanner(System.in);
  6. int N = Integer.parseInt(sc.nextLine());
  7. int result =0;
  8. for (int i =1; i<=N;i++){
  9. System.out.println("");
  10. for (int j = 1; j<=N+1;j++) {
  11. result = j;
  12. System.out.print(result+" ");
  13. }
  14. }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement