June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
26
Task/Extend-your-language/Ring/extend-your-language.ring
Normal file
26
Task/Extend-your-language/Ring/extend-your-language.ring
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Project : Extend your language
|
||||
# Date : 2017/11/15
|
||||
# Author : Gal Zsolt (~ CalmoSoft ~)
|
||||
# Email : <calmosoft@gmail.com>
|
||||
|
||||
see "a = 1, b = 1 => "
|
||||
test(1, 1)
|
||||
see "a = 1, b = 0 => "
|
||||
test(1, 0)
|
||||
see "a = 0, b = 1 => "
|
||||
test(0, 1)
|
||||
see "a = 0, b = 0 => "
|
||||
test(0, 0)
|
||||
see nl
|
||||
|
||||
func test(a,b)
|
||||
if a > 0 and b > 0
|
||||
see "both positive"
|
||||
but a > 0
|
||||
see "first positive"
|
||||
but b > 0
|
||||
see "second positive"
|
||||
but a < 1 and b < 1
|
||||
see "neither positive"
|
||||
ok
|
||||
see nl
|
||||
Loading…
Add table
Add a link
Reference in a new issue