Blame view

P90615_en/S001-AC.cc 269 Bytes
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <iostream>

using namespace std;

int main()
{
	int max;
	int input[3];
	cin >> input[0];
	cin >> input[1];
	cin >> input[2];
	max = input[0];
	for(int i = 1; i < 3; i++)
	{
		if(input[i] > max)
		{
			max = input[i];
		}
	}
	cout << max << endl;
	return 0;
}