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
Get step-by-step solutions from verified subject matter experts
