#include <stdio.h>
#include<stdlib.h>
struct Node;{
    int data;
    struct Node*node;
};
int main() {
    struct Node *head = NULL,newnode,*temp;
    int n;
    printf("Enter the number of nodes");
    scanf("%d",&n);
    for(int i=0;i<n;i++){
        newnode=(struct Node*)malloc(sizeof(struct Node));
        if(newNode)==null{
            printf("memory allocation failed");
            return 1;
        }
        printf("enter the data for the node %d",i+1);
        scanf("%d",&newNode ->data);
        newNode->next =NULL;
    }
return 0;
}