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 ;
- mientras ( f < 3 )
- {
- c = 0 ;
- mientras ( c < 5 )
- {
- printf ( "componente de Ingrese" ) ;
- scanf ( "% i" , & mat [ f ] [ c ] ) ;
- c = c + 1 ;
- }
- f = f + 1 ;
- }
- }
- void imprimir ( int mat [ 3 ] [ 5 ] )
- {
- int f, c;
- f = 0 ;
- mientras ( f < 3 )
- {
- c = 0 ;
- mientras ( 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 ) ;
- sistema ( "pausa" ) ;
- return 0 ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement