Answer:
Output of the following code:-
5
15
Explanation:
There are two functions in the code given above.
start function is used to call the second function sumTo with variable x whose value is 5.
in function there is a for loop which runs from i 0 to num and adds up i to the sum.So the sum will be 15 when the argument is 5.
start function also prints the value of x and the sum is printed in the new line.So the output is
5
15.