Cro-lang Tutorial: Hello World in Cro-lang

Welcome to our Cro-lang tutorial! In this guide, we'll learn how to write and execute a simple program called "Hello World" using the Cro-lang programming language.

Step 1: Install Cro-lang

Cro-lang is a lightweight, fast, and easy-to-use programming language that runs on the web. To get started, you need to install Cro-lang:

Step 2: Create a New Project

Once Cro-lang is installed, create a new project by following these steps:

  1. Navigate to the folder where you extracted Cro-lang.
  2. Create a new file named "hello.cro" within the project directory.
  3. Open the file in a text editor and copy the following code into it:
                
                // hello.cro
                print("Hello, world!");
                
            

Step 3: Run the Program

To run the program, open a terminal or command prompt and navigate to the project directory. Then, execute the following command:

                
                cro hello.cro
                
            

That's it! You've successfully created and executed a simple Cro-lang program. Congratulations!

If you want to learn more about Cro-lang, check out the official documentation at /docs/.