#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=0;i<n;i++)
{
scanf("%d",&arr[i]);    
}
/*print all elements in array*/
printf("elements in array are:\n");
for(i=0;i<n;i++)
{
    printf("%d\n",arr[i]);
}
return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: