subject

Write a while loop fragment that calculates the following values:a) Sum of the first n counting numbers: 1 2 3 . . . nb) Sum of the first n odd numbers: 1 3 5 . . . 2n - 1c) Sum of a series of numbers entered by the user until the value 999 is entered. Note: 999 should not be part of the sum. d) The number of times a whole number n can be divided by 2 (using integer division) before reaching 1 (i. e., log2n).

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
What is a costume plot? why is it important to a film or theater production?
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
You have a small company and want to keep your costs low, but it is important your employees share data. which network would provide you with the most economical solution?
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
What can a word user do with the customize ribbon dialog box? check all that apply. minimize the ribbon add a new tab to the ribbon remove a group from a tab add a group to a tab choose which styles appear choose which fonts appear choose tools to appear in a group
Answers: 1
question
Computers and Technology, 24.06.2019 00:30
Asecurity policy is a a. set of guidlines b. set of transmission protocols c. written document d. set of rules based on standards and guidelines
Answers: 2
You know the right answer?
Write a while loop fragment that calculates the following values:a) Sum of the first n counting numb...
Questions
question
Mathematics, 11.07.2019 14:00
question
Mathematics, 11.07.2019 14:00
question
Mathematics, 11.07.2019 14:00
question
Mathematics, 11.07.2019 14:00
question
Mathematics, 11.07.2019 14:00
Questions on the website: 13722367