#include<iostream> using namespace std; class biggest { private: int a,b; public: void input(); void display(); }; void biggest::input() { cout<<"Enter 2 nos.:"; cin>>a>>b; } void biggest::display() { if(a>b) cout<<"Biggest no.:"<<a; else cout<<"Biggest no.:"<<b; } int main() { biggest b; b.input(); b.display(); }
OUTPUT ::
Enter 2 nos.:33 44 Biggest no.:44
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
OUTPUT ::
need an explanation for this answer? contact us directly to get an explanation for this answer