Skip to content

Instantly share code, notes, and snippets.

View rohan1234's full-sized avatar
🙃
I may be slow to respond.

rohan1234

🙃
I may be slow to respond.
View GitHub Profile
@rohan1234
rohan1234 / Fizzbuzz.cpp
Created November 22, 2020 02:50
FizzBuzz hackerrank solution in c++
void fizzBuzz(int n) {
int i;
i=n;
for(int i=1;i<=n;i++)
{
if(i%3==0 && i%5==0)
{
cout<<"FizzBuzz"<<endl;
}
else if(i%3==0 && (!i%5==0))