Answer to Question #299253 in C++ for CHicken nuggets

Question #299253

Write a program that takes in three integers as inputs and outputs the largest value.

Ex: If the input is:

1 2 3

and the outut must be 3



1
Expert's answer
2022-02-18T01:21:20-0500
#include <iostream>

using namespace std;

int main() {
 int a,b,c;
 cin >> a >> b >> c;

cout << max(a, max(b,c)) << "\n";
return 0; 

}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog