Skip to main content

Writing your first application

Hello World

func main() =  {
printLine("foo");
}

If condition

func main()={
if ( 2<3 )
{
printLine("foo");
}
else if (true)
{
print('c');
}
}

While Loop

func foo() = {
int x = 3;
while (x<=4)
{
x++;
print(x);
}
}