Lompat ke konten

Iteration: FOR

English

FOR counts

  • A count-controlled loop runs once for each integer from the start to the end, inclusive.
  • The counter is an INTEGER.
  • It is good practice to repeat the counter's name after NEXT.

FOR Count from 1 to 4 runs four passes with Count equal to 1, 2, 3 and 4

Lembar Kerja

Masuk atau buat akun

IGCSE, A-Level & AP