Question: Write a program that asks the user for 2 numbers and prints their sum. If the sum is equal to 0, continue asking the user

Write a program that asks the user for 2 numbers and prints their sum. If the sum is equal to 0, continue asking the user for 2 numbers until the sum of the two numbers is no longer equal to 0. If the user has been asked for input more than 3 times, print "goodbye" and end the program. Can't use the exit() command.

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!