Addition in PSeInt: the + operator
Adds two numbers. With text, depending on the profile, it also joins them one after the other.
- Group:
- Algebraic
- 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 7 + 5FinAlgoritmoOutput
Shows: 12
This is what the console shows when the example runs.
12In 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.
Personal Greeting
Asks for your name and age, and answers with both.
BeginnerTemperature Converter
Converts degrees Celsius to Fahrenheit and Kelvin.
BeginnerTip Calculator
Splits a restaurant bill, tip included.
BeginnerPassword Check
Keeps asking for a password until it has at least 8 characters.
BeginnerSum Until Zero
Adds up the numbers you type until you enter a 0.
BeginnerGrade Average
Stores five grades in an array and finds the average and the highest.
Beginner
More algebraic
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.