# publicKhan/khan-exercises

### Subversion checkout URL

You can clone with HTTPS or Subversion.

Fetching contributors…

Cannot retrieve contributors at this time

file 116 lines (104 sloc) 4.49 kb
 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116         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.