Trace a halving loop
Cette page nécessite un navigateur récent (avec support SharedArrayBuffer). Veuillez mettre à jour Chrome, Edge, Firefox ou Safari vers la dernière version.
Trace a halving loop
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.
Value starts at 19, Count at 0. While Value > 1, replace Value with its integer quotient on division by 2, then increase Count by 1. Give Value and Count AFTER each iteration, one pair per line.