olverac174 olverac174
  • 21-09-2022
  • Computers and Technology
contestada

# Your task is to read in a single int, n, from the user.
# Then print out the result of adding all the numbers from 1 to n
# For example if the user inputs 5 then you would compute the following:
# 1 + 2 + 3 + 4 + 5 = 15

Your task is to read in a single int n from the user Then print out the result of adding all the numbers from 1 to n For example if the user inputs 5 then you class=

Respuesta :

Otras preguntas

rob colored one fourth of a rectangle what is another way to name one fourth
you buy six notebooks and a backpack. The cost of the backpack is$ 17.90. You pay 6% in sales tax. Your total bill is $30.74 how much does each notebook cost?
How do you simplify 28/63?
Which of the following statements is true of Singapore? A. Singapore is member of the Federation of Malaysia. B. Singapore is a major manufacturer of computer
How can I use obscure in a complex sentence?
what is the value of the 5 in the diameter of a half dollar?
Why is flammability a chemical property rather than a physical property?
think about the natural resources near you. what are the things that you made your family decide to live where you do?
Write the equation for 5x + 2y = 3 in slope-intercept form.
Which of the following numbers is not composite? 21, 43, 45, 39