Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/Call-a-function/Ring/call-a-function-1.ring
Normal file
3
Task/Call-a-function/Ring/call-a-function-1.ring
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
hello()
|
||||
func hello
|
||||
see "Hello from function" + nl
|
||||
3
Task/Call-a-function/Ring/call-a-function-2.ring
Normal file
3
Task/Call-a-function/Ring/call-a-function-2.ring
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
first() second()
|
||||
func first see "message from the first function" + nl
|
||||
func second see "message from the second function" + nl
|
||||
2
Task/Call-a-function/Ring/call-a-function-3.ring
Normal file
2
Task/Call-a-function/Ring/call-a-function-3.ring
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
sum(3,5) sum(1000,2000)
|
||||
func sum x,y see x+y+nl
|
||||
4
Task/Call-a-function/Ring/call-a-function-4.ring
Normal file
4
Task/Call-a-function/Ring/call-a-function-4.ring
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# this program will print the hello world message first then execute the main function
|
||||
See "Hello World!" + nl
|
||||
func main
|
||||
see "Message from the main function" + nl
|
||||
Loading…
Add table
Add a link
Reference in a new issue