1#include <iostream>
2using namespace std;
3int main()
4{
5 int num, max = 0;
6 cout << "Enter 3 numbers: ";
7 for(int i = 0; i < 3; i++)
8 {
9 cin >> num;
10 if (num > max)
11 max = num;
12 }
13 cout << max << " is the largest number.";
14 return 0;
15}