Hello, World!
Let’s write your first Z# program — the classic Hello, World!.
Step 1: Create a File
Create a new file called main.zs:
sh
touch main.zsStep 2: Write the code
Paste the following code into main.zs
zsharp
Don’t worry about the syntax for now — we’ll cover it in the next section.import 'z#';
Console.log('Hello, World!');
Process.exit(0);Step 3: Run the Program
Run:
sh
zs run main.zsYou should see: Hello, World!
🎉 That's it — you’ve just written your first Z# program!
What's Next?
- Learn how functions and types work in Core Concepts