ZenScript main repository
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.

functions.zs 262B

1234567891011121314151617181920
  1. function test() as void {
  2. println("functions.zs; test1");
  3. }
  4. function test2() as void {
  5. println("functions.zs; test2");
  6. }
  7. test();
  8. test2();
  9. println(test3(1, 3));
  10. function test3(a as int, b as int) as int{
  11. println(a+b);
  12. return a + b;
  13. }