05 December 2017

UVA 12577 - Hajj-e-Akbar (python)

n = 1
while n:
str = input()
#print('Case no# %d :'%n)
if str == '*':
break
if str == 'Hajj':
print("Case %d: Hajj-e-Akbar"%n)
elif str == 'Umrah':
print("Case %d: Hajj-e-Asghar"%n)
n = n+1

No comments:

Post a Comment

UVA 10679 - I Love Strings!!