The program should output a fragment of the multiplication table for all numbers of the segment [a; b] to all the numbers of the segment [c; d]. The numbers a, b, c and d are natural and do not exceed 10, a≤b, c≤d. I started, but I don’t know how to finish.
a = int(input()) b = int(input()) c = int(input()) d = int(input()) s='' if a<=b and c<=d: for i in range (c, d+1): s=s+[i] print('\t',i,end='') for i in range(a, b+1): print('\n',i,'\t',s[0]*i,'\t',end='')