If you’re a beginner to programming, start at one of the following:

- Introduction: Learn about Vaklipi
- Output: Learn to write out messages in Vaklipi

Some things in life are repetitive. You know, you get milk every morning. You go to work every day, but not on Sunday or on holidays.

You can model that with instructions for repeating a set of statements, until something happens.

Take a good look at this.

Let y be 0. Let x be 1. While x is less than 5, set y to y plus x and increment x.

com.aiaioo.VaklipiVariableFixture | ||

program | variable | run() |

y is 0. x is 1. While x is less than 5, set y to y plus x and increment x. | y | 10.0 |

fit.Summary |

Did you get what that program does?

You can say the same thing another way:

Let y be 0. Let x be 1. While x is less than 5, increment y by x and increment x.

Is it clearer now?

com.aiaioo.VaklipiVariableFixture | ||

program | variable | run() |

Let y be 0. Let x be 1. While x is less than 5, increment y by x and increment x. | y | 10.0 |

Let y be 0. Let x be 1. While x is less than or equal to 4, increment y by x and increment x. | y | 10.0 |

fit.Summary |

What you’re doing is adding up all natural numbers less than 5.

The problem in mathematics is called ‘adding a list of integers in arithmetic progression’ but isn’t as complicated as it sounds.

In fact, you don’t even need to use a loop to do it.

You can get the same answer if you just computed x * x / 2 + x / 2.

Try it out for yourself!

com.aiaioo.VaklipiOutputFixture | ||

program | run() | |

Let x be 4. What is x * x / 2 plus x / 2 ? | 10.0 |

fit.Summary |

Now, if you were talking Hindi, you would say something like:

रा का मान ० है. ला का मान १ है. जब तक ला का मान ५ से कम है, तब तक रा में ला जोड़ दो और ला में १ जोड़ दो.

com.aiaioo.VaklipiVariableFixture | ||

program | variable | run() |

रा का मान ० है. ला का मान १ है. जब तक ला का मान ५ से कम है, तब तक रा में ला जोड़ दो और ला में १ जोड़ दो. | रा | 10.0 |

fit.Summary |

## Learn

You can learn programming with Vaklipi in the following pages:

- Introduction: Learn about Vaklipi
- Output: Learn to write out messages in Vaklipi
- Declarations: Learn to set the value of a variable
- Operators: Learn to do addition, multiplication, division etc.
- Conditionals: Learn to take specify the conditions for performing certain steps.
- Looping: Learn to repeat steps till some condition is satisfied.
- Jumping: Learn to jump to some point in the code.
- Functions: Learn to issue an command.
- Constructors: Learn to create an object of a certain type.
- Selectors: Learn to refer to a real world object.

Hi Cohan,

Is it possible to get a working binary for the language other than the web interface?

Looking forward to the rest of the tutorials.

— Santhosh Kumar · May 2, 08:58 AM · #

Yes, Santhosh, the software can run as a Java library or standalone application.

— Cohan · May 2, 09:24 AM · #