From 5c1f94d43b886e2af91bd5b68aae3d2f8b34ffe7 Mon Sep 17 00:00:00 2001 From: Swapnil Date: Sat, 3 Oct 2020 00:25:35 +0530 Subject: [PATCH 1/3] Added Code for FizzBuzzin C++ --- Day1/C++/fizzBuzzSwapnil.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Day1/C++/fizzBuzzSwapnil.cpp diff --git a/Day1/C++/fizzBuzzSwapnil.cpp b/Day1/C++/fizzBuzzSwapnil.cpp new file mode 100644 index 00000000..fd9a0474 --- /dev/null +++ b/Day1/C++/fizzBuzzSwapnil.cpp @@ -0,0 +1,30 @@ +#include +using namespace std; + + +int main(){ +cout<<"Please enter a number"<>A; + +vector soln; + +for(int i=1;i<=A;i++){ + +if(i%3==0 && i%5==0) + soln.push_back("FizzBuzz"); +else if(i%3==0) + soln.push_back("Fizz"); +else if(i%5==0) + soln.push_back("Buzz"); +else + soln.push_back(to_string(i)); + + +} +for(int i=0;i Date: Sat, 3 Oct 2020 00:31:22 +0530 Subject: [PATCH 2/3] Added Code for Fizz Buzz in C++ --- Day1/C++/fizzBuzzSwapnil.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Day1/C++/fizzBuzzSwapnil.cpp b/Day1/C++/fizzBuzzSwapnil.cpp index fd9a0474..f62fed09 100644 --- a/Day1/C++/fizzBuzzSwapnil.cpp +++ b/Day1/C++/fizzBuzzSwapnil.cpp @@ -1,7 +1,17 @@ + +/* +Author: Swapnil Satpathy +Date: 03/10/2020 + +*/ + + + #include using namespace std; + int main(){ cout<<"Please enter a number"< Date: Sat, 3 Oct 2020 00:34:52 +0530 Subject: [PATCH 3/3] Update .all-contributorsrc --- .all-contributorsrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.all-contributorsrc b/.all-contributorsrc index 38f70015..ca9354f3 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -308,6 +308,16 @@ "doc", "code" ] + }, + { + "login": “swapnil-satpathy", + "name": “Swapnil Satpathy", + "avatar_url": "https://avatars2.githubusercontent.com/u/54858475?s=460&u=26d2adf4592c6517f58ac87edadf4eb3bc06edba&v=4", + "profile": "https://github.com/swapnil-satpathy", + "contributions": [ + "doc", + "code" + ] } ] }