Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
13
Task/FizzBuzz/CMake/fizzbuzz.cmake
Normal file
13
Task/FizzBuzz/CMake/fizzbuzz.cmake
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
foreach(i RANGE 1 100)
|
||||
math(EXPR off3 "${i} % 3")
|
||||
math(EXPR off5 "${i} % 5")
|
||||
if(NOT off3 AND NOT off5)
|
||||
message(FizzBuzz)
|
||||
elseif(NOT off3)
|
||||
message(Fizz)
|
||||
elseif(NOT off5)
|
||||
message(Buzz)
|
||||
else()
|
||||
message(${i})
|
||||
endif()
|
||||
endforeach(i)
|
||||
Loading…
Add table
Add a link
Reference in a new issue