Question: The program allows the user to enter the answer. If the answer is correct, display congratulations. If the answer is incorrect, the program should show
The program allows the user to enter the answer. If the answer is correct, display congratulations. If the answer is incorrect, the program should show the correct answer. Ask the user whether they wish to continue after every question. Display the users total score (correct vs incorrect answers) at the end. Sample run:
Your result should look like:
65
+ 5
= 70
Congratulations!
Continue (Y/N): Y
10
+ 9
= 21
Sorry, the correct answer is 19
Continue (Y/N): N
Your final score is 1/2
ps:- please write the code in the simplest way possible :)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
