From 38c9a9a8b625ba69258a333c64d779102e8a1c39 Mon Sep 17 00:00:00 2001 From: nitish_web_nik <57797801+Nitish-web-nik@users.noreply.github.com> Date: Tue, 27 Oct 2020 11:00:13 +0530 Subject: [PATCH] Cpp._Fizz_Buzz_Application Uploaded a C++ application code which is most asked question on interview purpose in cpp. --- CPP._FIZZ_BUZZ_APPLICATION.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 CPP._FIZZ_BUZZ_APPLICATION.cpp diff --git a/CPP._FIZZ_BUZZ_APPLICATION.cpp b/CPP._FIZZ_BUZZ_APPLICATION.cpp new file mode 100644 index 0000000..8d2e8e5 --- /dev/null +++ b/CPP._FIZZ_BUZZ_APPLICATION.cpp @@ -0,0 +1,29 @@ +#include +#include +using namespace std; +int main() +{ + for(int i = 1; i<= 100; i++) + { + bool myBool = false; + if(i %3 == 0) + { + cout<<"Fizz"; + myBool = true; + } + if(i % 5 == 0) + { + cout<<"Buzz"; + myBool = true; + } + if(!myBool) + { + cout<