import javax.swing.*; public class klasa { /** * @param args */ public static void main(String[] args) { String txt; int n; do { do { txt=JOptionPane.showInputDialog("n="); } while (txt==null || txt.isEmpty()); n=Integer.parseInt(txt); } while (n<2 | n>5); int [][]tab = new int [n][n]; for (int i=0; i0) { tab [i][j] = (int)Math.pow(tab[i][0], j+1); } } } for (int i=0; i