Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Zadanie_7 {
- public static void main(String[] args) {
- System.out.println("Podaj liczbe");
- Scanner scanner = new Scanner(System.in);
- int a = scanner.nextInt();
- int [][] tablica = {{a},{a}};
- for(int c=1; c<=a;c++)
- {
- for(int b=1; b<=a;b++)
- System.out.print(c*b);
- System.out.println();
- }
- }
- }
- //123
- //246
- //369
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement