C++ Program to Find Largest Number Among Three Numbers
//C++ Program to Find Largest Number Among Three Numbers
//header files
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a, b, c;
cout << "Enter three numbers: ";
cin >> a >> b >> c;
if((a >= b) && (a >= c))
{
cout << "Largest number: " << a;
}
else if ((b >= a) && (b >= c))
{
cout << "Largest number: " << b;
}
else
{
cout << "Largest number: " << c;
}
getch();
}
Output
