{% extends "layout.html" %} {% block body %}
First example is...
println("I start program by assigning 0 to x"); x = 0; println("Then I declare a table, which is not obligatory"); array t[100]; println("After that I fill the table like that:"); while (x < 10) { print("Index: ", x); t[x] = 3*x; println(", value: ", t[x]); x = x + 1; } println("Pretty simple isn't it?");
I start program by assigning 0 to x Then I declare a table, which is not obligatory After that I fill the table like that: Index: 0, value: 0 Index: 1, value: 3 Index: 2, value: 6 Index: 3, value: 9 Index: 4, value: 12 Index: 5, value: 15 Index: 6, value: 18 Index: 7, value: 21 Index: 8, value: 24 Index: 9, value: 27 Pretty simple isn't it?