Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Zadanie_7 {
  4.  
  5. public static void main(String[] args) {
  6.  
  7. System.out.println("Podaj liczbe");
  8. Scanner scanner = new Scanner(System.in);
  9. int a = scanner.nextInt();
  10. int [][] tablica = {{a},{a}};
  11.  
  12. for(int c=1; c<=a;c++)
  13. {
  14. for(int b=1; b<=a;b++)
  15. System.out.print(c*b);
  16. System.out.println();
  17. }
  18.  
  19. }
  20.  
  21.  
  22. }
  23. //123
  24. //246
  25. //369
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement