MOwa-Lang

Print & Input

Learn how to display output and take user input in MowaLang.

Overview

MowaLang provides two core keywords for interacting with the user:

  1. mowa – used to print output
  2. theesko – used to take input

These are essential for building any interactive program.


Printing Output with mowa

Use mowa to display messages, variables, or results. You can print strings, numbers, boolean and even combine multiple values using commas.

Basic Usage

mowa "Hello World!";
mowa 24;
mowa nijam;

output:

Hello World!24nijam

Prabhas: 'Trust No-One, Kill Anyone, Be Only One'

Printing with Variables

idhi name = "Pradeep";
idhi age = 20;

mowa "Name:", name;
mowa "Age:", age;

output:

Name:PradeepAge:20

Prabhas: 'Trust No-One, Kill Anyone, Be Only One'

Escape Sequences

MowaLang supports standard escape characters like:

  1. \n - New Line
  2. \t - Tab

example:

mowa "My Name is:\nPradeep\tVarma";

output:

My Name is:
Pradeep    Varma

Prabhas: 'Trust No-One, Kill Anyone, Be Only One'

Taking Input with theesko

Use theesko to take input from the user into a variable. The variable and its type must be declared beforehand.

Basic Usage

idhi greeting = "Namaste!";
idhi name : string;

mowa "peru -  ";
theesko name;

mowa greeting,"\nNa Peru ",name;

output:

peru - Pradeep
Namaste!
Na Peru Pradeep

Prabhas: 'Aalasyam ayindha Acharyaputhra'

Note

Variables used for input must be declared with a type. If no type is given, the program will throw an error.

Now that you know how to display output using mowa and read input using theesko, let’s move on to performing calculations and expressions with arithmetic operations in MowaLang.