Trace nested loops
Esta página precisa de um navegador recente (com suporte a SharedArrayBuffer). Por favor, atualize Chrome, Edge, Firefox ou Safari para a versão mais recente.
Trace nested loops
IGCSE 0478 · Trace table
Read the question below and attempt it before opening support. Enter the requested values in order; spaces, commas or line breaks are accepted. The check assesses these structured values, not a written explanation.
Total starts at 0. For Row from 1 to 2, for Col from 1 to 3, perform Total ← Total + Row + Col. Give Row, Col, Total after each inner iteration, one triple per line.