#include <iostream>
/* run this program using the console pauser or add
your own getch, system("pause") or input loop */
using namespace std;
int max(int x, int y)
{
return (x > y ? x : y);
}
int max(int x, int y, int z)
{
int m = (x > y ? x : y);
return (z > m ? z : m);
}
int main()
{
cout
<< "Maksimum 2 bilangan : " << max(99,77) << endl;
cout
<< "Maksimum 3 bilangan : " << max(55,66,33);
return 0;
}
Sign up here with your email
ConversionConversion EmoticonEmoticon