Skip to content

Commit

Permalink
Update jubach2020.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jubach2020 authored Jan 2, 2023
1 parent 4bc488c commit 8df424f
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [Fácil]/c++/jubach2020.cpp
Original file line number Diff line number Diff line change
@@ -1 +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 8df424f

Please sign in to comment.