subject

Write a program to calculate the sum of the numbers from 1 till upper bound. If upper bound is 5, sum should be 1 + 2 + 3 + 4 + 5 = 15. If upper bound is 11, sum should be 1 + 2 + ... + 11 = 66. If upper bound is 100, sum should be 1 + 2 + ... + 100 = 5050.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. sean is a computer programmer. he has programmed an application for toddlers that plays nursery rhymes. however, a logic error has occurred in the program. which problem is a likely consequence of the error? a. the program crashes every time the user wants to play the nursery rhymes. b. the program crosses its buffer boundaries and overwrites an adjacent program. c. the program plays a different nursery rhyme than the one the user intended to play. d. the program shows different structures in its programming language code. e. the program introduces new viruses every time the user plays a nursery rhyme.
Answers: 1
question
Computers and Technology, 24.06.2019 17:00
The length of time that a slide appears before automatically advancing to the next slide can be set in the timing group under the transitions tab. transition to this slide group under the transitions tab. timing group in the master slide view. transition to this slide group in the master slide view.
Answers: 1
question
Computers and Technology, 25.06.2019 13:00
Which color produces a calming effect on the mind a. pink b. blue c. red d. white e. green
Answers: 1
question
Computers and Technology, 25.06.2019 14:00
The first few lines of a script that say "using" that point the code to the right groups are called
Answers: 1
You know the right answer?
Write a program to calculate the sum of the numbers from 1 till upper bound. If upper bound is 5, su...
Questions
question
History, 27.08.2019 04:00
Questions on the website: 13722362