pclubuiet / Hacktoberfest-2k19

Hacktoberfest 2019 pclub repo. Only assignees' PRs will be considered. First to come first to be served while issues are being assigned.
8 stars 76 forks source link

Create a "FizzBuzz" program in C++ (see desc.) #31

Open gurpreetsingh00885 opened 5 years ago

gurpreetsingh00885 commented 5 years ago

Write a program that takes an input n and prints all numbers from 1 to n according to the following rules.

  1. If the number is a multiple of 3 then print "Fizz".
  2. If the number is a multiple of 5 then print "Buzz".
  3. If the number is a multiple of 3 and 5 then print "FizzBuzz".
  4. Otherwise print the number itself.

Write the program in C++

Anshul1342 commented 5 years ago

can i take this one ??

gurpreetsingh00885 commented 5 years ago

@Anshul1342 Assigned.