Skip to content

Instantly share code, notes, and snippets.

View heavy-metal-blues-code's full-sized avatar

heavy-metal heavy-metal-blues-code

View GitHub Profile
@heavy-metal-blues-code
heavy-metal-blues-code / CracklePop.py
Last active December 5, 2022 10:07
Applying to RC
#Write a program that prints out the numbers 1 to 100 (inclusive).
#If the number is divisible by 3, print Crackle instead of the number.
#If it's divisible by 5, print Pop. If it's divisible by both 3 and 5, print CracklePop.
#You can use any language.
def print_number(n):
if n > 0:
print_number(n - 1)
if n % 3 == 0:
if n % 3 == 0 and n % 5 == 0: