Skip to content · ⁨Lompat ke konten⁩

Loops: while, for, and accumulation · ⁨Perulangan: while, for, dan akumulasi⁩

English

Repeating work

  • A loop runs the same block of code many times, so you don't copy it by hand.
  • C has three loops: while, for, and do-while. They all repeat while a condition is true.
  • The condition is checked each time around. When it becomes false, the loop stops.
Bahasa Indonesia

Mengulang pekerjaan

  • Sebuah loop menjalankan blok kode yang sama berkali-kali, sehingga Anda tidak perlu menyalinnya secara manual.
  • C memiliki tiga loop: while, for, dan do-while. Semua mengulang selama condition true.
  • Condition dicek setiap kali putaran. Ketika menjadi false, loop berhenti.

Handout · ⁨Lembar Kerja⁩

Log in or create account · ⁨Masuk atau buat akun⁩

IGCSE, A-Level & AP