#include <stdio.h>
#include<stdlib.h>
struct node
{
    int data;
    struct Node*next;
};
int main()
{
    struct Node *head=NULL,*newnode,*temp;
    int n;
    printf("Enter number of node:");
    scanf("%d",&n);
    for(int i=0;i<n;i++)
    {
        new Node=(Struct Node*) malloc(sizeof(struct Node));
        if(newNode==NULL)
        {
            printf("Memory allocaton failed:\n");
            return 1;
        }
        printf("Enter data for node %d:",i-1);
        scanf"%d",&newNode->data);
        newNode->next=NULL;
        if(head=NULL)
        {
            head==newNode;
            temp=newNode;
        }
        else
        {
            temp->next=newNode;
            temp=newNode;
        }
    }
    printf("\n i")
}
}