Question: Write a program that prompts for an integers and then finds the sum of consecutive integers starting at 1. Thus, if =5 , you will

Write a program that prompts for an integers and then finds the sum of consecutive integers starting at 1. Thus, if =5 , you will find the sum of 1+2+3+4+5=15 . (If you wish, you may use a formula instead of finding the sum directly).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!