Write a program that prints the numbers from 1 to 100 and for multiples of '3' print "Fizz" instead of the number and for the multiples of '5' print "Buzz" and for the multiples of both '3' and '5' print "FizzBuzz".
Sample Output:
1, 2, Fizz, 4, Buzz, Fizz, 7, 8, Fizz, Buzz, 11, Fizz, 13, 14, FizzBuzz, 16, 17, Fizz, 19, Buzz, Fizz, 22, 23, Fizz, Buzz, 26, Fizz, 28, 29, FizzBuzz, 31, 32, Fizz, 34, Buzz, Fizz, ...
Fizz Buzz is the most common programming question asked during the interviews. The goal of this repository is to help beginners with their contributions in Open Source. Every contribution is appreciated, just make sure to follow the contribution guidelines.
Hacktoberfest® (1 October-31 October) is open to everyone in our global community. Whether you’re a developer or a student learning to code.
Enter Your email on the website to win T-shirt.
Website - https://hacktoberfest.digitalocean.com/
-
Give a start and ⭐ Click on fork button in the right corner.It will create a copy of repositiry in your account.
- Check here How to fork
-
You can clone your repository in your local pc with use of Github_Desktop application or for your Terminal/bash.
For Terminal -
git clone <url_name>
-
Make what change you want to make in Repo. It can be spelling mistake, code correction or anything.
You can also upload your program to respective folder. If folder for your programming language is not present, create one and add your code.
All Repository are open for contributions.
-
Push it to your repository and Issue a PR(Pull Request) in main repository.
And, that's it.