largest number in c 2b 2b

Solutions on MaxInterview for largest number in c 2b 2b by the best coders in the world

showing results for - "largest number in c 2b 2b"
Dario
14 Jul 2017
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}