You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CSC221/Week-2/mathquiz/challenge5.py

11 lines
327 B
Python

from random import randint
#Challenges5
number_one = randint(1,10)
number_two = randint(1,10)
answer = int(input(f"What is {number_one} times {number_two} ?\n" * 2))
if number_one * number_two == answer:
print(f"Your answer {answer} is correct!!")
else:
print(f"Wrong the correct answer is {number_one * number_two}")