write a program to input are three digit number and check the greatest number (C++) answer Fast I will surely mark brainliest
Answers
Answered by
1
Answer:
here it is
Explanation:
#include <iostream.h>
#include<conio.h>
void main()
{
int n1, n2, n3;
cout << "Enter three numbers: ";
cin >> n1 >> n2 >> n3;
if(n1 >= n2 && n1 >= n3)
{
cout << "Largest number: " << n1;
}
if(n2 >= n1 && n2 >= n3)
{
cout << "Largest number: " << n2;
}
if(n3 >= n1 && n3 >= n2) {
cout << "Largest number: " << n3;
}
return 0;
}
RaviJamesBond:
thanks a lot
Similar questions