Input five number in an array and transfer these number in a different array.
#include <stdio.h>
#include <conio.h>
void main ( )
{
int no1[5], no2[5], i;
clrscr ( );
printf ("\n\t Number transfer from one array to another array\n\n");
for ( i = 0; i <= 4; i++ )
{
printf ("\n\t\t\t Enter a number......:"); scanf ("%d", & no1[i]);
no2[i] = no1[i];
}
for ( i = 0; i <= 4; i++ )
{
printf ("\n\t Number in 1st array : - %d \t Number in 2nd array : - %d", no1[i],
no2[i]);
}
getch ( );
}
Clink here to contact us
No comments:
Post a Comment