#include <stdio.h>
#include<stdlib.h> 
int main() 
{
    int n,i,*ptr,sum=0;
    printf("enter has of elements\n");
    scanf("%d",&n);
    ptr=
    return 0;
}

Embed on website

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