FizzBuzz Challenge

easyAccepted
Programming Fundamentals·Due 2026-03-15 (0d left)

Description

Write a function that prints numbers from 1 to 100. For multiples of 3, print 'Fizz'. For multiples of 5, print 'Buzz'. For multiples of both, print 'FizzBuzz'.

Requirements

Function should accept `n` as parameter
Print each result on a new line
Handle edge cases (n = 0, negative numbers)

Requirements

  • Function accepts n as parameter
  • Handles edge cases
  • Correct output for all multiples

Acceptance Criteria

  • All test cases pass
  • Clean code with comments
  • No hardcoded values
Sandbox

Submit for Review

Submission History

Mar 10, 2026, 02:30 PM

https://github.com/student/fizzbuzz

Accepted

Feedback

Clean solution! Good handling of edge cases.