Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TavolaPitagorica {
- private int[] [] matrix;
- public TavolaPitagorica(int k){
- matrix = new int[k][k];
- for(int y = 0; y < k; y++) {
- for (int x = 0; x < k; x++)
- matrix[y][x] = y * x;
- }
- public void stampa(){
- for(int i = 0; i < matrix.length; i++){
- System.out.print();
- }
- }
- }
- public static void main(String args[]){
- TavolaPitagorica tab = new TavolaPitagorica(10);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement