Magnesiaworld / Hacktoberfest_2021

Use this as learning repo on how to create successful pull requests.
8 stars 49 forks source link

FizzBuzz in C++ #14

Closed Magnesiaworld closed 3 years ago

Magnesiaworld commented 3 years ago

Implement this question in C++

Write a Python program which iterates the integers from 1 to 50. For multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz“

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 37 38 Fizz Buzz 41 Fizz 43 44 FizzBuzz 46 47 Fizz 49 Buzz

Code should be neat and clean. Comments in code is appreciated.

This will ensure no file will be conflict and any number of contributors can work on the same issue.

If you have any query ask in comments below, kindly follow this pattern strictly.

Magnesiaworld commented 3 years ago

Issue pull request get merged as first come first Service rule.

keshavop commented 3 years ago

I will solve this issue and practice my concepts of loops

Magnesiaworld commented 3 years ago

Thank you guys. Closing this issue as pull request get merged.