0

can you help me with this problem?

The given code takes 3 numbers as input. Complete the program to output the maximum of the 3 inputs.

4th May 2022, 8:17 AM
Kumara Dimas
3 Answers
+ 1
Can you please post what you have at the moment so that i can help you
4th May 2022, 12:36 PM
⚡parky
⚡parky - avatar
0
input <- readLines('stdin') x <- as.integer(input[1]) y <- as.integer(input[2]) z <- as.integer(input[3]) print(y) my code as in the results gives the correct answer, but was told to repeat once again. is there something wrong or missing from my code?
4th May 2022, 12:52 PM
Kumara Dimas
0
Your code always print the number in the same position among the inputs, without ever comparing them. How would this find a maximum? Instead of pasting code, include in the question a link to it in Code Playground.
4th May 2022, 6:38 PM
Emerson Prado
Emerson Prado - avatar