largest number in c++
#include <iostream>
using namespace std;
int main()
{
int num, max = 0;
cout << "Enter 3 numbers: ";
for(int i = 0; i < 3; i++)
{
cin >> num;
if (num > max)
max = num;
}
cout << max << " is the largest number.";
return 0;
}