If08. Two numbers are given. First print the larger and then smaller ones.

**Solution in Python 3:**

import random

A = random.randrange(-3,3)

B = random.randrange(-3,3)

print("Two numbers:", A, B)

if A > B:

print(A,B)

else:

print(B,A)

If08. Two numbers are given. First print the larger and then smaller ones.

**Solution in Python 3:**

import random

A = random.randrange(-3,3)

B = random.randrange(-3,3)

print("Two numbers:", A, B)

if A > B:

print(A,B)

else:

print(B,A)

- Details
- Written by Rahmatjon Hakimov
- Category: If
- Hits: 142