Pagalpanti🤪 Live demo
Pagalpanti is a simple toy programming language implemented in JavaScript.
- Variable Declaration: Declare and initialize variables.
- Print Statement: Display output to the console.
- Arithmetic Operations: Perform basic arithmetic calculations.
- Conditional Statements: Execute code based on conditions.
- Looping Constructs: Implement iterative loops.
📌Try out Pagalpanti with our live demo: Pagalpanti
To run Pagalpanti programs, you need:
- Node.js installed on your machine (if running outside the browser).
- A modern web browser for running Pagalpanti programs in the browser.
- Use the maan lo keyword to declare and initialize variables.
Syntax::
maan lo variable_name = value;
Example:
maan lo a = 10;
maan lo b = 20;
maan lo name = "John";
Print Statement
Use the likho keyword to display output to the console.
Syntax: likho expression;
Example :
likho "Hello, world!";
likho a + b;
Arithmetic Operations
Perform basic arithmetic operations on variables.
Supported operators:
- Addition (+)
- Subtraction (-)
- Multiplication (*)
- Division (/) Example:
maan lo sum = a + b;
maan lo product = a * b;
likho sum;
likho product;
Happy Coding! 🎉