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) {
- int a;
- System.out.println("Podaj liczbe");
- Scanner scanner = new Scanner(System.in);
- a = scanner.nextInt();
- int [][] tablica = new int[a][a];
- for (int i = 1; i <= a; i++) {
- for (int j = 1; j <= a; j++) {
- System.out.print(tablica[i][j]);
- }
- System.out.println();
- }
- }
- }
- //123
- //246
- //369
Advertisement
Add Comment
Please, Sign In to add comment