Created
October 20, 2017 22:54
-
-
Save RhoKratos/7e54c8725276131ab7f97fff63ef26ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(){ | |
int matriz[4][4]={{1,0,0,0},{0,1,0,0},{0,0,1,0},{0,0,0,1}}; | |
int ren, col; | |
for(ren=0; col<4; ren++){ | |
for(col=0; col<4; col++){ | |
if(ren==col); | |
printf("1"); | |
else | |
printf("0"); | |
} | |
printf("\n"); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment