Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Condition » ?

Definition 10.4 Primary & Middle School Computer Science · Chapitre 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.”
Lire dans le chapitre →