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.
3 odpowiedzi
+ 1
Can you please post what you have at the moment so that i can help you
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?
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.