If06. Two numbers are given. Print the largest of them.
Solution in Python 3:
import random
A = random.randrange(-3,3)
B = random.randrange(-3,3)
print("Два числа:", A, B)
if A > B:
_max = A
else:
_max = B
print("Largest: ", _max)
If06. Two numbers are given. Print the largest of them.
Solution in Python 3:
import random
A = random.randrange(-3,3)
B = random.randrange(-3,3)
print("Два числа:", A, B)
if A > B:
_max = A
else:
_max = B
print("Largest: ", _max)