Backup proyecto Joyfe - Borland
This commit is contained in:
17
CPP/EJEMPLO3.CPP
Normal file
17
CPP/EJEMPLO3.CPP
Normal file
@ -0,0 +1,17 @@
|
||||
// ejemplo3
|
||||
|
||||
#include<stdio.h>
|
||||
#include<conio.h>
|
||||
|
||||
int matriz [5][4];
|
||||
int f,c,cont=1;
|
||||
|
||||
void main() {
|
||||
clrscr();
|
||||
for(f=0;f<5;f++)
|
||||
for (c=0;c<4;c++,cont++) {
|
||||
matriz[f][c]=cont;
|
||||
printf ("\nMatriz [%d][%d] contiene %d y su direcci<63>n es: %p",f,c,matriz[f][c],&matriz[f][c]);
|
||||
}
|
||||
getch();
|
||||
}
|
||||
Reference in New Issue
Block a user