<iostream>
using namespace std;
class Set
{
m,n;
:
input();
display();
largest();
};
Set:: largest()
{
(m>=n)
(m);
(n);
}
Set::input()
{
std::cout <<"input values of m and n"<<"\n";
std::cin>>m>>n;
}
Set:: display()
{
std::cout <<"largest value=" <<largest() << "\n";
}
main()
{
Set s;
s.input();
s.display();
}
|