For3. Two integers A and B (A < B) are given. Output in descending order all the integers between A and B (not including the numbers A and B), as well as the number N of these numbers.

Solution in Python 3:

import random

B = random.randrange(2,20)
A = random.randrange(1,B)

print('A = ', A)
print('B = ', B)
N = 0
for i in range(B-1, A, -1):
print(i,end=' ')
N += 1
print()
print("N = ", N)