diff --git a/Addsub.cpp b/Addsub.cpp new file mode 100644 index 0000000..18a1af3 --- /dev/null +++ b/Addsub.cpp @@ -0,0 +1,13 @@ +#include + +int main() +{ + int a=31, b=8; + int c d; + c=a+b; + d=a-b; + cout<<"the sum is "<data = n; - start->prev = NULL; - start->next = NULL; - } - else - { - node *ptr = NULL; - ptr->data = n; - ptr->prev = NULL; - ptr->next = start; - start->prev=ptr; - start=ptr; - } -} - -int main() -{ - int data,i; - doubly_ll list; - cout<<"Enter data"<