Created
September 27, 2020 17:26
-
-
Save Rabios/2eb0f1cbf55b487902ba74f0e7213961 to your computer and use it in GitHub Desktop.
Even or Odd example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Written by Rabia Alhaffar in 27/September/2020 | |
-- Even or Odd example | |
local function even(a) | |
if ((a % 2) == 0) then | |
return true | |
else | |
return false | |
end | |
end | |
even(10) --> true | |
even(5) --> false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment