Write a program that asks the user for a positive nonzero integer value.

Prepare a proposal recommending monetary policy actions designed to correct problems with spending, employment, and prices.
August 5, 2017
Provide a brief overview of the rights contained within the Bill of Rights’ Fourth, Fifth, Sixth, and Eighth Amendments that apply to criminal defendants.
August 5, 2017
Show all

Write a program that asks the user for a positive nonzero integer value.

Sum of Numbers.

Write a program that asks the user for a positive nonzero integer value.

The program should use a loop to get the sum of all the integers from 1 up to the number entered.

For example, if the user enters 50, the loop will find the sum of 1,2,3,4,….50.

Leave a Reply

Your email address will not be published. Required fields are marked *