DEV Community

Discussion on: Daily Challenge #193 - What's the Real Floor?

Collapse
 
maskedman99 profile image
Rohit Prasad

Python

var = int(input("Enter the floor number: "))

if var <= 0:
        print(var)
elif var > 13:
        print(var-2)
else:
        print(var-1)