Skip to content

Commit

Permalink
Merge pull request #43 from jubach2020/main
Browse files Browse the repository at this point in the history
Create Reto #0 - C++
  • Loading branch information
mouredev authored Jan 2, 2023
2 parents 005dfc7 + ef17ef8 commit 36dfeaa
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [Fácil]/c++/jubach2020.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#include <iostream>
using namespace std;
int main(void){
// Your code here!
int a;
int m3;
int m5;
int m35;

for(a=0; a<=100; a++) {
if(a%3==0) {
if(a%5==0) {
cout << "fizzbuzz" << endl;
} else {
cout << "fizz" << endl;
}
} else {
if(a%5==0) {
cout << "buzz" << endl;
} else {
cout << a << endl;
}
}
}
}

0 comments on commit 36dfeaa

Please sign in to comment.