# Khan/khan-exercises

Fetching contributors…
Cannot retrieve contributors at this time
117 lines (104 sloc) 4.38 KB
 Representing numbers
randRange( 0, 2 ) randRange( 0, 5 ) randRange( 0, 9 ) 100 * A + 10 * B + C

What number is represented by the blocks shown?

init({ range: [ [-1, 21], [-0.5, 1.5] ], scale: 24 }); style({ fill: "#6495ed", fillOpacity: 0.6, strokeWidth: 2, stroke: "#4e74ba" }); for ( var i = 0; i < C; i++ ) { path([ [1.5 * i, 0], [1.5 * i, 1], [1.5 * i + 1, 1], [1.5 * i + 1, 0], true ]); }
init({ range: [ [-1, 21], [-1.5 * B, 0.5] ], scale: 24 }); style({ fill: "#6495ed", fillOpacity: 0.6, strokeWidth: 2, stroke: "#4e74ba" }); for ( var i = 0; i < B; i++ ) { path([ [0, -1.5 * i], [10, -1.5 * i], [10, -1.5 * i - 1], [0, -1.5 * i - 1], true ]); grid( [0, 10], [-1.5 * i, -1.5 * i - 1], { strokeWidth: 1 } ).translate( -0.5, 0 ); }
init({ range: [ [-1, 21], [-0.5, 10.5] ], scale: 24 }); style({ fill: "#6495ed", fillOpacity: 0.6, strokeWidth: 2, stroke: "#4e74ba" }); for ( var i = 0; i < A; i++ ) { path([ [10.5 * i + 0, 0], [10.5 * i + 0, 10], [10.5 * i + 10, 10], [10.5 * i + 10, 0], true ]); grid( [0, 10], [0, 10], { strokeWidth: 1 } ).translate( 24 * 10.5 * i - 0.5, 0 ); }
N

By counting the number of hundreds blocks, we see that the hundreds digit of the number is A.

for ( var i = 0; i < A; i++ ) { label( [10.5 * i + 5, 5], "\\large{\\mathbf{100}}", { color: "black", background: "#a2bff4" } ); }

Because there are no tens blocks, the tens digit of the number is 0.

By counting the number of tens blocks, we see that the tens digit of the number is B.

for ( var i = 0; i < B; i++ ) { label( [5, -1.5 * i - 0.6], "\\large{\\mathbf{1\\:0}}", { color: "black" } ); }

Because there are no single unit blocks, the units digit of the number is 0.

By counting the number of single unit blocks, we see that the units digit of the number is C.

for ( var i = 0; i < C; i++ ) { label( [1.5 * i + 0.5, 0.5], "\\mathbf{1}", { color: "black" } ); }

The number is N.

Something went wrong with that request. Please try again.