Advertisement
Guest User

tablica i*j

a guest
Oct 16th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. package com.codewithDZM;
  2.  
  3. import java.util.Scanner;
  4. import java.util.Random;
  5. public class Main
  6. {
  7.  
  8.  
  9. public static void main(String[] args)
  10. {
  11. Scanner sc = new Scanner(System.in);
  12. int n = sc.nextInt();
  13.  
  14. for (int i = 1; i <= n; i++)
  15. {
  16.  
  17. for (int j = 1; j <= n; j++)
  18. {
  19. System.out.print(i * j + " ");
  20. }
  21. System.out.println();
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement