njs-guy / FizzBuzz-in-multiple-languages

FizzBuzz is a common question in coding interviews. Essentially, you are asked to write a program that prints the numbers from 1 to 100 and for multiples of '3', print "Fizz" instead of the number and for multiples of '5' print "Buzz". For multiples of '3' AND '5', print "FizzBuzz".

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FizzBuzz in multiple languages

FizzBuzz is a common question in coding interviews. Essentially, you are asked to write a program that prints the numbers from 1 to 100 and for multiples of '3', print "Fizz" instead of the number and for multiples of '5' print "Buzz". For multiples of '3' AND '5', print "FizzBuzz".

Output should look something like this:

1
2   
Fizz
4   
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz

And so on.

It would be much better to come up with your own implementation before looking at mine. Interviewers ask questions like these to make sure that you actually know how to code, so if you just copy and paste everything, you might not get far.

About

FizzBuzz is a common question in coding interviews. Essentially, you are asked to write a program that prints the numbers from 1 to 100 and for multiples of '3', print "Fizz" instead of the number and for multiples of '5' print "Buzz". For multiples of '3' AND '5', print "FizzBuzz".

License:MIT License


Languages

Language:C# 25.6%Language:JavaScript 21.3%Language:C++ 18.6%Language:HTML 10.9%Language:Rust 10.0%Language:Python 9.0%Language:CSS 4.6%