Greater than in PSeInt: the > operator
Asks whether the left value is greater than the right one.
- Group:
- Relational
- Template
>
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.
Algoritmo Example Escribir 8 > 3FinAlgoritmoOutput
Shows: VERDADERO
This is what the console shows when the example runs.
VERDADEROIn a flowchart
This is how it appears in a flowchart, with the same shapes Codoritmo draws.
Template
The general form. Replace what's inside < > with your own data.
>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.
BeginnerFibonacci Sequence
Prints the first terms of the Fibonacci sequence.
BeginnerParking Fee
Charges every started hour, with a daily maximum.
IntermediateLinear Search
Finds a name in a list, ignoring upper and lower case.
IntermediateBinary Search
Finds a value in a sorted array by halving the range every step.
IntermediateLinear vs. Binary Search
Counts the comparisons each search needs on the same sorted list.
Intermediate
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.