+ 1

Help me get it right

input <- readLines('stdin') x <- as.integer(input[1]) y <- as.integer(input[2]) #define the function result <- rangeSum(x, y) print(result)

2nd Apr 2022, 7:30 PM
Ntokozo Gift
Ntokozo Gift - avatar
4 Answers
+ 2
Ntokozo Gift Define a function with name rangeSum, add values and return final value. Learn lesson "User-defined Function" already explained there.
3rd Apr 2022, 2:47 AM
AÍąJ
AÍąJ - avatar
+ 3
You have to define the function
2nd Apr 2022, 8:42 PM
Lisa
Lisa - avatar
0
Give me the everything . Put code on the script that's missing or whatever that's supposed to be done. Please
5th Apr 2022, 8:32 PM
Ntokozo Gift
Ntokozo Gift - avatar
0
Re-read the lessons. Look at the examples. Then write your own code. Show us your code if you need help.
5th Apr 2022, 8:58 PM
Lisa
Lisa - avatar