Code:#include <iostream> using namespace std; // Declare a function "bigger" which takes 2 double arguments and returns boolean. int bigger( double x, double y ); int main() { int x, y, rb; cout << "Enter number" << endl; cin >> x; cout << "Enter number 2" << endl; cin >> y; rb = bigger ( x, y); cout << " The largest number is " << rb << endl; system("pause"); return 0; } bigger ( double x, double y) { if ( x > y) return x; else return y; }



LinkBack URL
About LinkBacks


