Program that asks the user to enter a positive integer


Assume that you've been asked to write a program that asks the user to enter a positive integer. The program should use a loop to get the sum of all of the integers from 1 up to the number entered. For example, if the user enters 10, the program will add 1+2+3+4+5+6+7+8+9+10 and output the number 55.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Program that asks the user to enter a positive integer
Reference No:- TGS085041

Expected delivery within 24 Hours