gopheta
SETSWANA TRANSLATION: Repeats a block of code a specific number of times.
SETSWANA TRANSLATION: Use gopheta when you know how many times you want to repeat something. The loop has three parts: an initializer, a condition, and an update step.
SETSWANA TRANSLATION: Syntax
SETSWANA TRANSLATION: Section titled “SETSWANA TRANSLATION: Syntax”SETSWANA TRANSLATION: gopheta (init; seemo; tswelopele) { ... }SETSWANA TRANSLATION: Examples
SETSWANA TRANSLATION: Section titled “SETSWANA TRANSLATION: Examples”gopheta (diri i = 0; i < 5; i = i + 1) {
kwala(i);
}