PSeInt Escribir Sin Saltar: print without a new line
Like Escribir, but stays on the same line. Handy so the user's answer appears right next to the question.
- Group:
- Structures
- Template
Escribir Sin Saltar
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 "Hola " Sin Saltar Escribir "mundo"FinAlgoritmoOutput
Shows on a single line: Hola mundo
This is what the console shows when the example runs.
Hola mundoGood to know
Sin Saltar and Sin Bajar mean the same thing; use either.
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.
Escribir <expresion> Sin BajarExamples that use it
Programs from the example library where it appears, from the simplest to the most complete.
Fibonacci Sequence
Prints the first terms of the Fibonacci sequence.
BeginnerGuess the Number
Guess a secret number from 1 to 100 in seven tries.
IntermediateDrawing Shapes
Draws a square and a triangle with asterisks.
IntermediateBubble Sort
Sorts random numbers by swapping neighbors, and stops as soon as they're in order.
IntermediateSelection Sort
Finds the smallest of the remaining numbers and puts it in its place.
IntermediateInsertion Sort
Inserts each number among the sorted ones, like arranging cards in your hand.
Intermediate
More structures
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.