Trace a halving loop
Halaman ini memerlukan browser terbaru (dengan dukungan SharedArrayBuffer). Silakan perbarui Chrome, Edge, Firefox, atau Safari ke versi terbaru.
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.