From 8df424f213fd6d23805772a099788c2cb49150f1 Mon Sep 17 00:00:00 2001 From: jubach2020 <61415342+jubach2020@users.noreply.github.com> Date: Mon, 2 Jan 2023 12:21:29 +0100 Subject: [PATCH] Update jubach2020.cpp --- .../c++/jubach2020.cpp" | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git "a/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/c++/jubach2020.cpp" "b/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/c++/jubach2020.cpp" index 8b13789179..e595f53801 100644 --- "a/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/c++/jubach2020.cpp" +++ "b/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/c++/jubach2020.cpp" @@ -1 +1,25 @@ - +#include +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; + } + } + } +}