#include <stdio.h>
int main()
{
int arr[20];
int i,n;
/*input array size*/
printf("enter any size of array\n");
scanf("%d",&n);
/*input elements in array*/
printf("enter %d elements in array:\n",n);
for(i=1;i<=n;i++)
{
scanf("%d",&arr[i]);
}
/*print all elements in array*/
printf("elements in array are:\n");
for(i=n;i>=1;i--)
{
printf("%d\n",arr[i]);
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: