Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Condition?

Definition 10.4 Primary & Middle School Computer Science · Bab 10 — Algorithms: Repeat and Decide

A condition is a question about the situation whose answer is yes or no. An algorithm can decide: if the condition is true, it carries out some instructions; otherwise it carries out others.

A decision drawn as a diamond: the condition inside, one arrow for each answer. “If the square ahead is free, forward; otherwise, turn left.”
A decision drawn as a diamond: the condition inside, one arrow for each answer. “If the square ahead is free, forward; otherwise, turn left.”
Baca dalam konteks →