my first snippet

#include<iostream> using namespace std; class dibya { int a,b; public: void input(){ cout<<"enter the values of a and b"<<endl; cin>>a>>b; } void sum(){ return (a+b);} }; main() { dibya d; d.input(); int a=d.sum(); cout<<a; }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.