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:10
How many solutions does the nonlinear system of equations graphed below have?
Answers: 2
question
Mathematics, 21.06.2019 23:30
Oliver had $50 on the day before his birthday. after he recived some money for his birthday , he had $75. write and solve eqaution to find how much money oliver received for his birthday. x+50=75
Answers: 1
question
Mathematics, 22.06.2019 00:00
What is perpendicular to y=-1/2x+11
Answers: 1
question
Mathematics, 22.06.2019 03:00
Rectangle abcd is similar to rectangle rstu . what is the scale factor of a dilation from abcd to rstu ? enter your answer in the box.
Answers: 2
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
Spanish, 21.07.2021 17:30
Questions on the website: 13722367