diff options
| author | Cody <cody@codyq.dev> | 2023-06-15 13:50:02 -0500 |
|---|---|---|
| committer | Cody <cody@codyq.dev> | 2023-06-15 13:50:02 -0500 |
| commit | 932673c0026c33c41e969e109a0ca7a1fd6abba8 (patch) | |
| tree | 35b3bbf2c9aec87106e5a665b54e027e086b88d2 /examples | |
| parent | 9c6ff27ba4ce313887251f59f45a220556e94398 (diff) | |
| download | sloth-932673c0026c33c41e969e109a0ca7a1fd6abba8.tar.gz | |
pog pog pogpogpogpogpogpogpogpog pog pog pogpogpogpogpogpog
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/hello.sloth | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/hello.sloth b/examples/hello.sloth index 8201dae..0da2fd0 100644 --- a/examples/hello.sloth +++ b/examples/hello.sloth @@ -1,6 +1,7 @@ -print("Hello World!"); - -# Comment -for greeting in ["Hello", "Hola", "你好"] { - print(greeting + " World!"); +fn main() { + var i: Int = 10; + while i > 0 { + i = i - 1; + } } + |
