diff --git a/dc/day1/fizzbuzz.cpp b/dc/day1/fizzbuzz.cpp new file mode 100644 index 0000000..110c42a --- /dev/null +++ b/dc/day1/fizzbuzz.cpp @@ -0,0 +1,25 @@ +#include +using namespace std; +int fizzbuzz(int n) +{ + for(int i=1; i<=n; i++) + { + if((i%3) && (i%5)) + cout<>n; +fizzbuzz(n); +}