Write a program that takes in three integers as inputs and outputs the largest value.
Ex: If the input is:
1 2 3
and the outut must be 3
#include <iostream>
using namespace std;
int main() {
int a,b,c;
cin >> a >> b >> c;
cout << max(a, max(b,c)) << "\n";
return 0;
}
Comments
Leave a comment