From 2a2efa874935239d89e6bd6cf5f0f1ed5b9d27f2 Mon Sep 17 00:00:00 2001 From: Khunathorn Thongnopphakhun Date: Mon, 7 Mar 2022 00:48:32 +0700 Subject: [PATCH] khunathorn send answer khunathorn send answer --- solutions/khunathorn_thongnopphakhun/01.php | 17 +++++++++++ solutions/khunathorn_thongnopphakhun/02.php | 16 +++++++++++ solutions/khunathorn_thongnopphakhun/03.php | 32 +++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 solutions/khunathorn_thongnopphakhun/01.php create mode 100644 solutions/khunathorn_thongnopphakhun/02.php create mode 100644 solutions/khunathorn_thongnopphakhun/03.php diff --git a/solutions/khunathorn_thongnopphakhun/01.php b/solutions/khunathorn_thongnopphakhun/01.php new file mode 100644 index 0000000..7008f8c --- /dev/null +++ b/solutions/khunathorn_thongnopphakhun/01.php @@ -0,0 +1,17 @@ += 1 && $input <=100): + for($i=$input; $i<=100; $i++): + echo ($i%15 == 0) ? "FizzBuzz \n" : null; + echo ($i%3 == 0) ? "Fizz \n" : $input."\n"; + echo ($i%5 == 0) ? "Buzz \n" : $input."\n"; + endfor; +else: + echo 'input fail'; +endif; \ No newline at end of file diff --git a/solutions/khunathorn_thongnopphakhun/02.php b/solutions/khunathorn_thongnopphakhun/02.php new file mode 100644 index 0000000..567f435 --- /dev/null +++ b/solutions/khunathorn_thongnopphakhun/02.php @@ -0,0 +1,16 @@ +