void InsertEnd(int num)
{
Node *NewNode;
NewNode=new Node;
NewNode->Data=num;
NewNode->Next=NULL;
Node* EndNode;
EndNode=Head;
if(EndNode == NULL)
EndNode=NewNode;
else
{
while(EndNode->Next!=NULL)
EndNode=EndNode->Next;
///by now EndNode->Next is equal to null
EndNode->next=NewNode;///so this is what you need
}
}