Computer Science, asked by shubham31031991, 4 months ago

Using **Python** solve:
Take a 2 digit number as input from the user. Find the square of it, identify the resulting 3 digit
number which has its 2 digits at the rightmost position similar to the original digits
Example: input: AB
AB*AB = CAB for some C

Answers

Answered by karmanyagupta1421
1

Explanation:

for i in range (10,101):

sqr = i**2

if str(sqr)[-2:] == str(i):

print(f'{i} : {sqr}')

#this gives the required number and its square

#try this in your ide

Similar questions