Top "Fizzbuzz" questions

a game, algorithm and a common programming task of replacing any number divisible by three with the word "fizz", and any number divisible by five with the word "buzz"

Writing FizzBuzz

Reading the coding horror, I just came across the FizzBuzz another time. The original post is here: Coding Horror: Why …

c# optimization fizzbuzz
From 1 to 100, print "ping" if multiple of 3, "pong" if multiple of 5, or else print the number

I just came home from a job interview, and the interviewer asked me to write a program: It should, count …

javascript fizzbuzz
C programming. The FizzBuzz program

I had a quiz and I wrote this code: Print Fizz if it is divisible by 3 and it prints Buzz …

c fizzbuzz
Alternate FizzBuzz Questions

Anybody have any good FizzBuzz type questions that are not the FizzBuzz problem? I am interviewing someone and FB is …

fizzbuzz
FizzBuzz program (details given) in Javascript

Can someone please correct this code of mine for FizzBuzz? There seems to be a small mistake. This code below …

javascript fizzbuzz
How to reduce if statements

The program below functions as necessary but how do I reduce the amount of if statements. I have been told …

java if-statement switch-statement fizzbuzz
print a list of numbers, replace numbers with words multiples of 3,5 also 3and5 C

Had my midterm in "programming with C" last week, the final question was write a program to print a list …

c fizzbuzz
Invalid indirect of type func (int) string

I'm getting stucked with the following error: ./main.go:76: invalid indirect of Fizzbuzz (type func(int) string) I understand that …

go fizzbuzz
Find if a number is divisible by 3 or 5 (FizzBuzz)

How do I change the output depending on whether or not it is divisible by 3 or 5? If it is divisible …

javascript fizzbuzz
Trying to turn fizzbuzz into a function in python 3

I have only just started to learn python as my first language and whilst i worked out the code for …

python python-3.x fizzbuzz