> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/NormandoRamirezDelgado/6C-Febrero-2026/llms.txt
> Use this file to discover all available pages before exploring further.

# Hello World

> Your first Dart program - the classic Hello World example

## Introduction

Every programming journey begins with a simple "Hello World" program. In Dart, this is incredibly straightforward and demonstrates the basic structure of a Dart application.

## The Hello World Program

Here's the complete Hello World program in Dart:

```dart theme={null}
void main() {
  print('Hola!!!');
}
```

## Understanding the Code

Let's break down each part of this simple program:

<AccordionGroup>
  <Accordion title="void main()">
    The `main()` function is the entry point of every Dart application. When you run a Dart program, execution starts here.

    * `void` indicates that this function doesn't return a value
    * `main` is the required name for the entry point function
    * `()` indicates this function takes no parameters (for now)
  </Accordion>

  <Accordion title="print()">
    The `print()` function displays output to the console.

    * It accepts a value (in this case, a String) as a parameter
    * The text is enclosed in single quotes `'...'` (you can also use double quotes `"..."`)
    * Each statement in Dart ends with a semicolon `;`
  </Accordion>
</AccordionGroup>

## Running Your First Program

<Steps>
  <Step title="Create a file">
    Create a new file named `hello_world.dart` in your project directory.
  </Step>

  <Step title="Write the code">
    Copy the Hello World code into your file:

    ```dart theme={null}
    void main() {
      print('Hola!!!');
    }
    ```
  </Step>

  <Step title="Run the program">
    Execute the program from your terminal:

    ```bash theme={null}
    dart hello_world.dart
    ```
  </Step>

  <Step title="See the output">
    You should see the output:

    ```
    Hola!!!
    ```
  </Step>
</Steps>

<Tip>
  You can change the message inside `print()` to display any text you want. Try experimenting with different messages!
</Tip>

## Try It Yourself

Modify the program to display your own message:

```dart theme={null}
void main() {
  print('Welcome to Dart programming!');
  print('My name is [Your Name]');
  print('I am learning Dart!');
}
```

<Note>
  Each `print()` statement outputs text on a new line. You can call `print()` multiple times to display multiple lines of output.
</Note>

## Next Steps

Now that you've created your first Dart program, you're ready to learn about variables and how to store data in your programs.
