Skip to content
EspañolWorkspace →

PSeInt Esperar: pause for some seconds

Pauses before moving on to the next instruction. Gives time to read a message, or makes simple animations.

Template
Esperar
Open it in Codoritmo

Opens the editor with this example loaded. Run it step by step and watch the flowchart.

Worked example

A complete algorithm, ready to copy and run.

esperar-wait.psc · 5 lines
Algoritmo Example    Escribir "3..."    Esperar 1 Segundo    Escribir "2..."FinAlgoritmo

Output

Shows "3...", waits a second, then "2...".

This is what the console shows when the example runs.

3...2...

Good to know

You can also give the pause in milliseconds: Esperar 500 Milisegundos.

In a flowchart

This is how it appears in a flowchart, with the same shapes Codoritmo draws.

Esperar 1 Segundo
In the flowchart. Flowchart: a process rectangle reading "Esperar 1 Segundo", with one arrow in and one arrow out.
Draw the flowchart of your own algorithm →

Template

The general form. Replace what's inside < > with your own data.

Esperar · 1 line
Esperar 1 Segundos

Examples that use it

Programs from the example library where it appears, from the simplest to the most complete.

  • Countdown

    A rocket launch countdown that ticks second by second.

    Beginner
See every Screen & waiting example →

More structures

Codoritmo is an independent, open-source project inspired by PSeInt and compatible with its syntax. It is not affiliated with the PSeInt project. Official PSeInt website.