Something like this (not tested):
void printLarger(int a, int b)
{
cout << a >= b ? a : b;
}
6.5m questions
8.6m answers