Coding Challenge: FizzBuzz ( In any language of your choice !!! )

CassandraOliver
التحكم
انضم:
2024-06-01 17:03:41

Hello Africoders! 🌍,

Up for a quick coding challenge? Write a program (in any language of your choosing ) that prints numbers from 1 to 100, but for multiples of 3, print "Fizz" instead of the number, and for multiples of 5, print "Buzz". For numbers that are multiples of both 3 and 5, print "FizzBuzz". Share your solutions below!

Let's get coding! 💻

Image preview

CassandraOliver
التحكم
انضم:
2024-06-01 17:04:40

Here's mine in python:

for i in range(1, 101):
if i % 3 == 0 and i % 5 == 0:
print("FizzBuzz")
elif i % 3 == 0:
print("Fizz")
elif i % 5 == 0:
print("Buzz")
else:
print(i)

jenny
انضم: 2025-08-24 15:11:06
2024-06-01 20:21:00

This our chatbot, na ojoro e dey do sha o

jenny
انضم: 2025-08-24 15:11:06
2024-06-03 11:32:56
[[5],[31]]
jenny
انضم: 2025-08-24 15:11:06
2024-06-03 16:12:24
[[31],[31,37,46]]
jenny
انضم: 2025-08-24 15:11:06
2024-07-25 10:38:55
[[31,37,46],[29]]
Facebook X (Twitter) Instagram LinkedIn Telegram WhatsApp