Question: Write a program that continues to ask a user to input numbers until their sum equals 1 0 0 . The input statement should keep
Write a program that continues to ask a user to input numbers until their sum equals
The input statement should keep track of the try # # # etc.
The program also suggests a number to the user that could end the program.
When the sum equals the program exits and congratulates the user.
After unsuccessful tries the program exits and tells the user that they have failed.
Your output should look like so:
The program will end as soon as the sum of input numbers reaches
Input the following number to end the program:
Please input #:
Input the following number to end the program:
Please input #:
Congratulations you have succeeded
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
