Trace a halving loop
このページには最新のブラウザ(SharedArrayBuffer対応)が必要です。Chrome、Edge、Firefox、Safariを最新バージョンに更新してください。
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.