Emerald
![]() |
Hello World | Michael Neumann |
const HelloWorld == % % Hello World in Emerald % object HelloWorld process stdout.putstring["Hello World\n"] stdin.close stdout.close end process end HelloWorld |
Prints "Hello World" onto the
screen. |
Squares | Michael Neumann |
const Test == object Test process var i : Integer i <- 1 loop exit when (i>10) stdout.putint[i*i] stdout.putstring[" "] end loop stdin.close stdout.close end process end Test |
Outputs the squares from 1 to
10. |