def main: void() {
let x = 10
let y: i32 = 20
let z = x + y
abs(-50)
pow(5, 3)
}
def abs: void(val: i32) {
return if val < 0
then 0 - val
else val
}
def pow(x: i32, y: i32) {
if y == 1
then return x
else return x * pow(x, y - 1)
}
-
Notifications
You must be signed in to change notification settings - Fork 0
License
TeleKiwi/Dough
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published