#include<stdio.h>
#include<stdlib.h>
typedef struct first{
int a;
struct first *next;
}first;
int main(){
struct first *head = NULL, *p, *prev;
int n;
printf("Enter Number of Nodes : \n");
scanf("%d ", &n);
int total = 0;
for(int i = 0;i<n;i++){
p = (first *)malloc(sizeof(first));
printf("Enter %d th number : ", i+1);
scanf("%d", &p->a);
total += (*p).a;
if(head == NULL){
head = p;
prev = p;
}