Skip to content
EspañolWorkspace →

Greater than in PSeInt: the > operator

Asks whether the left value is greater than the right one.

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-operator.psc · 3 lines
Algoritmo Example    Escribir 8 > 3FinAlgoritmo

Output

Shows: VERDADERO

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.

nota > 15Sí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 "nota > 15"; 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.

  • Sum Until Zero

    Adds up the numbers you type until you enter a 0.

    Beginner
  • Fibonacci Sequence

    Prints the first terms of the Fibonacci sequence.

    Beginner
  • Parking Fee

    Charges every started hour, with a daily maximum.

    Intermediate
  • Linear Search

    Finds a name in a list, ignoring upper and lower case.

    Intermediate
  • Binary Search

    Finds a value in a sorted array by halving the range every step.

    Intermediate
  • Linear vs. Binary Search

    Counts the comparisons each search needs on the same sorted list.

    Intermediate
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.