python - Count controlled Loops. Input 2 digits and find the Sum -
how solve question? lost on how start this? thanks!:
write algorithm , implement in python generate 2 1-digit numbers. digit must in range 0 9 inclusive, , add them together. before displaying sum, prompt user guess sum , input. values integer values.
if value inputted equals sum display "correct" otherwise display "incorrect".
also display 2 digits generated , sum.
then prompt user repeat (y yes or n no). if user enter y (or y), repeat process again. if user enter n (or n), terminate process.
Comments
Post a Comment