#include <iostream>
using namespace std;
class number
{
public :
int a, b;
void getdata ();
void display ();
};
void number::getdata ()
{
cout <<"\n Enter the two numbers: ";
cin >>a>>b;
cout<<a<<"\t"<<b;
}
void number::display ()
{
cout <<"\n The two number is :"<<a<<"\t"<<b;
}
int main() {
number x;
x. getdata ();
x. display ();
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: