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, 23.06.2019 17:30
Scientists have changed the model of the atom as they have gathered new evidence. one of the atomic models is shown below. what experimental evidence led to the development of this atomic model from the one before it? a few of the positive particles aimed at a gold foil seemed to bounce back. the colors of light emitted from heated atoms had very specific energies. experiments with water vapor showed that elements combine in specific proportions. cathode rays were bent in the same way whenever a magnet was brought near them.
Answers: 2
question
Computers and Technology, 23.06.2019 21:30
Enzo’s balance sheet for the month of july is shown. enzo’s balance sheet (july 2013) assets liabilities cash $600 credit card $4,000 investments $500 student loan $2,500 house $120,000 mortgage $80,000 car $6,000 car loan $2,000 total $127,100 total $88,500 which expression finds enzo’s net worth?
Answers: 1
question
Computers and Technology, 24.06.2019 15:00
Universal windows platform is designed for which windows 10 version?
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
To fill (copy) a cell across or down, point to the of the cell and drag. top left corner top right corner bottom left corner bottom right corner
Answers: 3
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, 17.02.2021 09:50
question
Mathematics, 17.02.2021 09:50
question
Mathematics, 17.02.2021 09:50
Questions on the website: 13722360