diff options
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; + } } + |
