← Back to lessons

1 Hello World

Beginner

This first program prints "Hello World".

Your main function does not need the func modifier.

To run the program, copy the code to a .cj file of your choice and run:

cjc filename.cj -o filename
Hello_World.cj
main() {
    println("Hello World")
}

// Output:
// Hello World