Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- class abc
- {
- public:
- void fun();
- };
- void abc::fun()
- {
- int a,b,c;
- cout<<"Enter the two no.s: ";
- cin>>a>>b;
- c=a+b;
- cout<<"The Addition Is: "<<c;
- }
- void main()
- {
- abc obj;
- obj.fun();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement