Wenn Sie noch einen Rechner nicht programmiert haben, koennen Sie vielleicht den folgenden ‘examples’ benutzen, um Programmierung zu lernen.
Wenn
Zuerst, mann kann ‘weil’ und ‘wenn’ wie immer benutzen.
x ist 2. Wenn x mal 3 weniger als 5 ist, schreib “Hallo” sonst schreib “Tschuess”!
com.aiaioo.VaklipiOutputFixture | ||
program | run() | |
x ist 2. Wenn x mal 3 groesser als 5 ist, schreib “Hallo” sonst schreib “Tschuess”! | Hallo | |
x ist 2. Wenn x plus 3 kleiner als 4 ist, schreib “Hallo” sonst schreib “Tschuess”! | Tschuess |
fit.Summary |
Waehrend
Und wenn einen ‘loop’ noetig ist, benutzt mann waehrend.
y ist gleich 0. x ist gleich 1. während x ist weniger als 5, y wird y plus x. Danach erhöhe x.
com.aiaioo.VaklipiVariableFixture | ||
program | variable | run() |
y ist gleich 0. x ist gleich 1. während x ist weniger als 5, y wird y plus x. Danach erhöhe x. | y | 10.0 |
y ist gleich 0. x ist gleich 1. während x ist weniger als 5, y wird y plus x und erhöhe x. | y | 10.0 |
fit.Summary |
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.