You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
333 B
21 lines
333 B
// another function
|
|
def AnotherFunction : {
|
|
printf["Hello from another function!"];
|
|
};
|
|
|
|
|
|
// every program needs a main :)
|
|
def Main : {
|
|
// define variables
|
|
a = 10;
|
|
b = 20;
|
|
|
|
// print statements
|
|
printf["a + b: "];
|
|
printf[{ int } a + b];
|
|
|
|
// calling functions
|
|
call AnotherFunction;
|
|
};
|
|
call Main;
|