#include <stdio.h>
#include <conio.h>

void leer ( int n[' '] , int b[' '] , int x )
{
	int j ;
	printf ( "\nTECLEE L0S VALORES DEL PRIMER ARREGLO\n");
	for ( j = 0 ; j< x ; j++ )
	{  scanf ( "%d",&n[j]);  }
	printf ( "TECLEE LOS VALORES DEL SEGUNDO ARREGLO\n");
	for( j = 0 ; j < x ; j++)
	{   scanf ( "%d",&b[j]);  }
}

void suma ( int n[' '] , int b[' '] , int c[' '], int x )
{
  int j ;
  for ( j = 0 ; j< x ; j++ )
  {  c[j]=n[j]+b[j];  }
}
void mostrar( int n[' '] , int b[' '] , int c[' '], int x )
{  int j;
//clrscr();
    printf("\nPRIMER ARREGLO        ");
    for ( j = 0 ; j< x ; j++ )
    printf("%3d",n[j]);
    printf("\nSEGUNDO ARREGLO       ");
    for( j = 0 ; j< x ; j++ )
    printf("%3d",b[j]);
    printf("\nLA SUMA DE ELLOS ES:  ");
    for ( j = 0 ; j< x ; j++ )
    { printf("%3d",c[j]);  }
    }

main ()
{
    int i[' '],b[' '],c[' '];
    int num ;
    clrscr () ;
    printf ( "\nTECLEE LA CANTIDAD DE NUMEROS A INTRODUCIR  ");
    scanf ( "%d",&num);
    leer (i,b,num);
    suma (i,b,c,num);
    mostrar(i,b,c,num);
    getch();

}
