Write a program to find out the maximum of any 3 input given by user. Example: If input given by user is A-5, B-7 anc C-2 then Output is B is the Maximum.
Answers
Answer:
HTML is a ______________ language used for creating webpages.
Answer:
The correct answer to the given question is:
The explanation shows the C++ program to find out the maximum input given by the user.
Explanation:
Code to find the maximum number out of the three inputs:
In this program, the user is prompted to enter three digits.
Then this program finds the largest number among the three numbers entered by the user and displays it with the appropriate message.
#include < iostream>
using namespace std;
int main() {
float num1, num2, num3;
cout << "Enter three numbers to find out the maximum: ";
cin >> num1 >> num2 >> num3;
if(num1 >= num2 && num1 >= num3)
cout << "Largest number: " << num1>= num1 && num2 >= num3)
cout << "Largest number: " << num2>= num1 && num3 >= num2)
cout << "Largest number: " << num3;
return 0;
}
#SPJ2