Skip to content

Commit c09e8ed

Browse files
user-defined functions
1 parent 3638017 commit c09e8ed

File tree

6 files changed

+576
-502
lines changed

6 files changed

+576
-502
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ end
4848
each i in 1 to 3:
4949
print "Count:", i
5050
end
51+
52+
def add(a,b):
53+
give a+b
54+
end
55+
56+
print add(2,3)
5157
```
5258

5359
**Output:**
@@ -64,6 +70,7 @@ Fruit: cherry
6470
Count: 1
6571
Count: 2
6672
Count: 3
73+
5
6774
```
6875

6976
---

0 commit comments

Comments
 (0)