Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class fsfsfs {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int[][] matriz = new int[4][4];
- System.out.println("Matriz:");
- for(int l = 0 ; l < 4 ; l++){
- for(int c = 0; c < 4 ; c++){
- System.out.printf("\t %d \t",matriz[l][c]);
- if(l == c){
- System.out.println("1 ");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement