while <boolean expression>:
<block of statements>
def main():
x = int(input("Enter a number from 0 to 100: "))
total = 0
while total % 100 != x:
total = total + 9
print("The smallest multiple of 9 that ends in {} is {}"
.format(x, total))
main()