subject
Mathematics, 19.03.2020 10:04 genesis88

The sum of the numbers from 1 to n can be performed recursively as follows: The sum from 1 to 1 is 1. The sum from 1 to n is n more than the sum from 1 to n-1. Write a int-function named sum that accepts an int parameter, n, and recursively calculates and returns the sum of the numbers from 1 to n. .

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 19:10
Which equation results from adding the equations in this system? x+6y=9 and -x+2y=-15
Answers: 1
question
Mathematics, 21.06.2019 21:30
Lizette is training for a marathon. at 7: 00 she left her house and ran until 8: 30, then she walked until 11: 30. she covered a total distance of 18 miles. her running speed was six miles per hour faster than her walking speed. find her running and walking speeds in miles per hour.
Answers: 2
question
Mathematics, 21.06.2019 21:30
How does reflecting or rotating a figure change the interior angles of the figure?
Answers: 2
question
Mathematics, 21.06.2019 21:30
Abicycle training wheel has a radius of 3 inches. the bicycle wheel has a radius of 10 inches.approximately how much smaller, in square inches and rounded to the nearest hundredth, is the area of the training wheel than the area of the regular wheel? *
Answers: 3
You know the right answer?
The sum of the numbers from 1 to n can be performed recursively as follows: The sum from 1 to 1 is 1...
Questions
question
Mathematics, 15.12.2021 03:50
question
English, 15.12.2021 03:50
question
History, 15.12.2021 03:50
question
Mathematics, 15.12.2021 03:50
Questions on the website: 13722366