Skip to content

Hello World

Top-Level Code

Unlike C or Java, Cera doesn’t require a main() function. Code at the top level of a .ce file runs directly:

Console.WriteLine("Hello, world!");

This makes Cera great for scripting — but you can still organize code into functions and types when your program grows.

Printing Output

Console is a built-in module for terminal I/O:

Console.WriteLine("Hello!"); // prints with newline
Console.Write("No newline"); // prints without newline
Console.WriteLine(42); // prints numbers too
Console.WriteLine(3.14); // and floats

Comments

// Single-line comment
/* Multi-line
comment */

Multiple Statements

Cera uses C-style semicolons to separate statements:

int x = 10;
int y = 20;
Console.WriteLine(x + y); // 30

Next Steps

Now that you’ve seen the basics, let’s learn about variables and types.