Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- void cargar(int mat[3][5])
- {
- int f,c;
- f=0;
- while(f<3)
- {
- c=0;
- while(c<5)
- {
- printf("Ingrese componente:");
- scanf("%i",&mat[f][c]);
- c=c+1;
- }
- f=f+1;
- }
- }
- void imprimir(int mat[3][5])
- {
- int f,c;
- f=0;
- while(f<3)
- {
- c=0;
- while(c<5)
- {
- printf("%i ",mat[f][c]);
- c=c+1;
- }
- printf("\n");
- f=f+1;
- }
- }
- int main()
- {
- int mat[3][5];
- cargar(mat);
- imprimir(mat);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement