Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think the point was that you do

If n%15==0

First, then the others. But it’s a pedantic point anyway (like this one)



Or you can print fizz and buzz in independent statements, or it against printing the raw number, and then print a new line for each number in the end.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: