From 9f48ac14ed1e82a39b0fbf82e653c2df13cb7a29 Mon Sep 17 00:00:00 2001 From: M33 <327-m33@git.qoto.org> Date: Tue, 30 Mar 2021 20:50:17 +0000 Subject: [PATCH] Add new file --- fizzbuzz-v4.cr | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 fizzbuzz-v4.cr diff --git a/fizzbuzz-v4.cr b/fizzbuzz-v4.cr new file mode 100644 index 0000000..d7ad1f7 --- /dev/null +++ b/fizzbuzz-v4.cr @@ -0,0 +1,12 @@ +(1..100).each do |i| +v=i +if i%3==0 +t="Fizz" +v="" +end +if i%5==0 +c="Buzz" +v="" +end +print v,t,c,"\n" +end \ No newline at end of file -- GitLab