Not equal in PSeInt: the <> and != operators
Asks whether two values are different. True when they aren't equal. Can also be written <>.
- 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 3 <> 4FinAlgoritmoOutput
Shows: VERDADERO
This is what the console shows when the example runs.
VERDADEROGood to know
<> and != mean the same thing; use the one your class uses.
In 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.
BeginnerName Initials
Gets the initials of a full name.
BeginnerSelection Sort
Finds the smallest of the remaining numbers and puts it in its place.
IntermediatePalindromes
Checks whether a phrase reads the same forwards and backwards.
IntermediateModular Menu
A unit converter with a menu that keeps coming back.
IntermediateGCD and LCM
Computes the greatest common divisor and the least common multiple.
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.