C program to Input an Array of 7 Elemnts and Copy the Contents of One Array into Another Array in Reverse Order ?
Q:- Write a C program to Input an
Array of 7 Elemnts and Copy the Contents of One
Array into Another Array in Reverse
Order ?
#include<stdio.h>
#include<conio.h>
main()
{
int a[7],b[7],i,j;
clrscr();
printf(“Enter 7 Elements =”);
for(i=0;i<7;i+)
scanf(“%d”,&a[i]);
i--;
for(j=0;j<7;j++)
{
b[j]=a[i];
i--;
}
printf(“\n Array of Elements B are
\n”);
for(j=0;j<7;j++)
printf(“%d\n”,b[i]);
getch();
}