subject

Write the code for a program that takes in an integer from the user and then calculates the sum of all the numbers from 1 to the integer entered by the user. For example,
suppose the user entered the number 4; now, the output should be 10.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:30
Which of the choices sean are not true when considering virus behavior
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
The more powerful, 60 volt cables and the main power shut off on an hev are both colored orange
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a,b] se pot scrie ca produs de două numere prime? “.
Answers: 3
question
Computers and Technology, 24.06.2019 00:50
Which player type acts on other players? a. killer b. achiever c. explorer d. socializer
Answers: 1
You know the right answer?
Write the code for a program that takes in an integer from the user and then calculates the sum of...
Questions
question
Mathematics, 03.02.2020 03:55
question
Health, 03.02.2020 03:55
question
Social Studies, 03.02.2020 03:55
Questions on the website: 13722361