fix some file extensions
This commit is contained in:
parent
68f8f3e56b
commit
f3a896c724
789 changed files with 91 additions and 62 deletions
|
|
@ -1,26 +0,0 @@
|
|||
'using the IF/ELSEIF ladder
|
||||
function fb( n )
|
||||
if n mod 15 = 0 then
|
||||
fb = "FizzBuzz"
|
||||
elseif n mod 5 = 0 then
|
||||
fb = "Fizz"
|
||||
elseif n mod 3 = 0 then
|
||||
fb = "Buzz"
|
||||
else
|
||||
fb = n
|
||||
end if
|
||||
end function
|
||||
|
||||
'the Mexican IF
|
||||
function eef( b, p1, p2 )
|
||||
if b then
|
||||
eef = p1
|
||||
else
|
||||
eef = p2
|
||||
end if
|
||||
end function
|
||||
|
||||
'using the Mexican IF
|
||||
function fb2( n )
|
||||
fb2 = eef( n mod 15 = 0, "FizzBuzz", eef( n mod 5 = 0, "Fizz", eef( n mod 3 = 0, "Buzz", n ) ) )
|
||||
end function
|
||||
Loading…
Add table
Add a link
Reference in a new issue