#include <stdio.h>
#include<stdlib.h>
int main() {
int n=6;
int*ptr;
ptr=(int*)malloc(n*sizeof(int));
for(int i=0;i<n;i++)
{
scanf("%d",&ptr[i]);
}
for(int i=0; i<n;i++)
{
printf("%d\n",ptr[i]);
}
printf("%d \n",ptr[0]);
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: