Skip to content
EspañolWorkspace →

Greater than or equal in PSeInt: the >= operator

Asks whether the left value is greater than or equal to the right one. Being equal counts.

Template
>=
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.

greater-than-or-equal-operator.psc · 3 lines
Algoritmo Example    Escribir 18 >= 18FinAlgoritmo

Output

Shows: VERDADERO (18 meets "18 or more")

This is what the console shows when the example runs.

VERDADERO

In a flowchart

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

edad >= 18SíNo
Used inside a condition. It has no shape of its own; it's used inside a condition. Flowchart: a decision diamond with the condition "edad >= 18"; the Sí (yes) exit continues down and the No exit turns right.
Draw the flowchart of your own algorithm →

Template

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

>= · 1 line
>=

Examples that use it

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

  • Can I Vote?

    Tells you whether you can vote or how many years you have left.

    Beginner
  • Password Check

    Keeps asking for a password until it has at least 8 characters.

    Beginner
  • Insertion Sort

    Inserts each number among the sorted ones, like arranging cards in your hand.

    Intermediate
  • Reusable Validation

    Validates the email and age on a sign-up form.

    Intermediate
  • Quicksort

    Picks a pivot, splits smaller from larger values and sorts each side recursively.

    Advanced
  • Roman Numerals

    Converts a number from 1 to 3999 into Roman numerals.

    Advanced
See every Si example →

More relational

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.