while True:
    l=float(input("Enter the lenght of the rectangle:-"))
    b=float(input("Enter the breadth of the rectangle:-"))
    print("Area of the rectangle is:-",l*b)
    x=input(print("If you want to continue press Y otherwise press N"))
    if x=='Y':
        continue
    else:
        break