Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
23
Task/Extend-your-language/Ring/extend-your-language.ring
Normal file
23
Task/Extend-your-language/Ring/extend-your-language.ring
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Project : Extend your language
|
||||
|
||||
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