Pseudonaja
  • Welcome to Pseudonaja
  • Guides
    • Declaring Variables and Arrays
    • Inputs and Outputs
    • Conditional Structures
    • Loop Structures
    • Functions and Procedures
    • Classes
    • Records
    • 👨‍💻Helping Develop Pseudonaja
  • Extras
    • Keyboard Shortcuts
Powered by GitBook
On this page
  • Inputs
  • Outputs

Was this helpful?

Edit on GitHub
Export as PDF
  1. Guides

Inputs and Outputs

Introduction to Inputting and Outputting Data

This section will take you through basic inputting and outputting of data in Pseudonaja.

Inputs

To input values, the INPUT command is used, however the variable that is being input into must first be declared, as follows:

DECLARE <variable name> : <data type>

INPUT <variable name>

An example of this would be:

DECLARE num1 : INTEGER

INPUT num1

Outputs

To output values, the OUTPUT command is used, as follows:

OUTPUT <value>

Multiple values can be output at the same time by using commas between each value.

OUTPUT <value1>, <value2>, <value3>

An example of a single output would be:

OUTPUT num1

Or multiple outputs:

OUTPUT num1, num2, num3
PreviousDeclaring Variables and ArraysNextConditional Structures

Last updated 3 years ago

Was this helpful?