Important Questions

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


You can also see a video how to run this program