Hello World
Your first algorithm: print a couple of messages on screen.
- Level
- Beginner
- Topic:
- First steps
- 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
Algoritmo HolaMundo Escribir "¡Hola, mundo!" Escribir "Este es tu primer algoritmo."FinAlgoritmoFlowchart
Each block in the flowchart matches one instruction in the code.
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.
Related examples
Temperature Converter
Converts degrees Celsius to Fahrenheit and Kelvin.
BeginnerTip Calculator
Splits a restaurant bill, tip included.
BeginnerCan I Vote?
Tells you whether you can vote or how many years you have left.
Beginner