subject

Write a function sumsteps2 that calculates and returns the sum of 1 to n in steps of 2, where n is an argument passed to the function. For example, if 11 is passed, it will return 1 3 5 7 9 11. Do this using a for loop. Calling the function will look like this:

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:30
To hide gridline when you display or print a worksheet
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
Amanda needs to create an informative print brochure for her local library’s fundraiser dinner. what critical detail must she have before she starts designing the brochure?
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Visually impaired individuals generally rely on the for navigation. thus, designers need to ensure that mouse-specific inputs, such as pointing, clicking, and hovering, can be done without a mouse.
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
An english teacher would like to divide 8 boys and 10 girls into groups, each with the same combination of boys and girls and nobody left out. what is the greatest number of groups that can be formed?
Answers: 2
You know the right answer?
Write a function sumsteps2 that calculates and returns the sum of 1 to n in steps of 2, where n is a...
Questions
question
Mathematics, 06.10.2019 05:40
question
English, 06.10.2019 05:40
question
Mathematics, 06.10.2019 05:40
question
Computers and Technology, 06.10.2019 05:40
question
Chemistry, 06.10.2019 05:40
Questions on the website: 13722363