a guest Oct 10th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def fun(num):
- if num <= 0:
- return ""
- elif num <= 26:
- return chr(64+num)
- return fun(int((num-1)/26))+chr(65+(num-1)%26)
- a = int(input("Enter the decimal number: "))
- for i in range(1,a+1):
RAW Paste Data