Відповідь:
Python code:
import random
count = 0
for i in range(0,5):
a = random.randint(1,10)
b = random.randint(1,10)
print(a, " * ", b , " = " )
answer = int(input())
if answer == (a * b):
print("Так!")
count += 1
else:
print("Ні!")
print("Ваша оцінка: ", count)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Відповідь:
Python code:
import random
count = 0
for i in range(0,5):
a = random.randint(1,10)
b = random.randint(1,10)
print(a, " * ", b , " = " )
answer = int(input())
if answer == (a * b):
print("Так!")
count += 1
else:
print("Ні!")
print("Ваша оцінка: ", count)