subject
Mathematics, 20.11.2020 14:00 july00

Write a function that is passed in a positive integer, n, and sum up all the digits from 1 to n, doubling the even numbers. In other words, calculate and return the following sum. if n is odd: 1 (2 * 2) 3 (4 * 2) ... ((n - 1) * 2) n if n is even: 1 (2 * 2) 3 (4 * 2) ... (n - 1) (n* 2)

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 19:30
Factor the expression using the gcf. the expression 21m−49n factored using the gcf
Answers: 2
question
Mathematics, 21.06.2019 22:00
Onnie is considering doing some long term investing with money that she inherited. she would like to have $50,000 at the end of 30 years. approximately how much money would lonnie need to put into an account earning 6% interest compounded annually in order to meet her goal?
Answers: 1
question
Mathematics, 22.06.2019 00:30
Astrid spent $36 on new shoes. this was $12 less than twice what she spent on a new skirt. part a: which equation would solve for how much she spent on the skirt? part b: solve the equation in the workspace provided below. how much did astrid spend on her skirt?
Answers: 1
question
Mathematics, 22.06.2019 01:30
12.0 million metric tons of beef produced annually in the u.s. out if 65.1 mikkion metric tons of produced annually worldwide
Answers: 1
You know the right answer?
Write a function that is passed in a positive integer, n, and sum up all the digits from 1 to n, dou...
Questions
question
Mathematics, 04.11.2020 22:40
question
Mathematics, 04.11.2020 22:40
question
English, 04.11.2020 22:40
question
Mathematics, 04.11.2020 22:40
question
Mathematics, 04.11.2020 22:40
question
History, 04.11.2020 22:40
Questions on the website: 13722367