Bhoos games
Write a program (in any programming language of your choice) that prints the numbers from 1 to 100 in reverse order. For multiples of three, print "Spade," for multiples of five, print "Heart," and for numbers that are multiples of both three and five, print "BhoosGames".
def bhoosGames(n):
arr = []
for i in range (1, n+1):
if ((i % 5) == 0 and (i % 3) == 0):
arr.append("BhoosGames")
elif ((i % 5 )== 0):
arr.append("Heart")
elif ((i % 3) == 0):
arr.append("Spade")
else:
arr.append(i)
return arr[::-1]
n = 100
out = bhoosGames(n)
print("Output:", out)