#include <stdio.h>
#include<stdlib.h>
struct Node{
    int data;
    struct Node *next;
};
struct Node* insertEnd(struct Node *head,int value){
    struct Node *newNode=malloc(sizeof(struct Node));
    newNode->data=value;
    newNode->next=NULL:
    if(head == NULL)return newNode;
    struct Node *temp=head;
    while (temp->next!=NULL)
    temp=temp->next;
    temp->nextnewNode;
    return head;
}
struct Node* deleteAtpos(struct Node *head,int P)
{
    if(head == NULL)
    return NULL:
    if(P==0){
        struct Node *temp=head;
        head=head->next;
        free(temp);
        return 0;
    }
    
    }
}
}
}