Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Condition?

Definition 10.4 Primary & Middle School Computer Science · Capítulo 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.”
Ler no capítulo →