Squares in range

Squares in range. Given two integers A and B, print the squares of all integer numbers between them in the format x*x=y, where x is the integer and y is its square.

Ensure there are no spaces around the * and = symbols. The sep argument of the print() function can help achieve this.

Test Case Input (A and B) Expected Output
1 3
5
3*3=9
4*4=16
5*5=25
2 1
3
1*1=1
2*2=4
3*3=9
3 2
2
2*2=4