+ 2
DRACULLA There should also be the third input i.e: z.
You just need to use the max(x,y,z) function... No need to create such big functions (rangeSum). Entire function will be removed.
Happy Coding đ€
Edit: Review lesson 5.1
0
The task description (find maximum) does not match the code (range sum). Please clarify which task you want to do, then link the corresponding code.
0
Hi
0
input <- readLines('stdin')
x <- as.integer(input[1])
y <- as.integer(input[2])
z <- as.integer(input[3])
print(max(x, y,z))