Computer Science, asked by isador092204, 9 months ago

does anyone know the answer to 2.5 code practice

Answers

Answered by eburcham58
6

Answer:

import random

a = (random.randint(1,10))

b = (random.randint(1,10))

print ("What is: " + str(a) + " * " + str(b) + "?")

ans = int(input("Your answer: "))

if (a * b == ans):

         print ("Correct!")

else:

         print ("Incorrect!")

Explanation:

Similar questions