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.