Skip to content
ExamplesEspañolWorkspace →

Hello World

Your first algorithm: print a couple of messages on screen.

Level
Beginner
Concepts:
Input & output
Open in Codoritmo

Run, change and debug this example in your browser.

What you'll learn

Every program lives between Algoritmo and FinAlgoritmo. Escribir prints text, and each Escribir ends with a new line.

Code

hello-world.psc · 4 lines
Algoritmo HolaMundo    Escribir "¡Hola, mundo!"    Escribir "Este es tu primer algoritmo."FinAlgoritmo

Flowchart

Each block in the flowchart matches one instruction in the code.

Algoritmo HolaMundoAlgoritmo HolaMundoAlgoritmo HolaMundoEscribir "¡Hola, mundo!"Escribir "¡Hola, mundo!"Escribir "Este es tu primer algoritmo."Escribir "Este es tu primeralgoritmo."FinAlgoritmoFinAlgoritmo

Sample run

This program doesn't ask for input: this is what it shows when it runs.

¡Hola, mundo!Este es tu primer algoritmo.

Challenge

Add a third line with your name and your favorite food.

Show hint

Copy one of the Escribir lines and change the text inside the quotes.

Open in Codoritmo