# Khan/khan-exercises

Switch branches/tags
Nothing to show
Fetching contributors…
Cannot retrieve contributors at this time
91 lines (84 sloc) 4.13 KB
 Multi-digit multiplication
rand(2) randFromArray([ randRange(10, 99), randRange(10, 99), randRange(10, 99), randRange(100, 999) ]) randFromArray([ randRange(100, 999), randRange(1000, 9999) ]) []

\large{SMALL_FACTOR \times BIG_FACTOR = {?}} \large{BIG_FACTOR \times SMALL_FACTOR = {?}}

graph.multiplier = new Multiplier(BIG_FACTOR, SMALL_FACTOR); DUMMY = Array(graph.multiplier.getNumHints() - 1);
SMALL_FACTOR * BIG_FACTOR
graph.multiplier.show();
graph.multiplier.showHint();
graph.multiplier.showHint();

\large{SMALL_FACTOR \times BIG_FACTOR = SMALL_FACTOR * BIG_FACTOR}

\large{BIG_FACTOR \times SMALL_FACTOR = SMALL_FACTOR * BIG_FACTOR}

randFromArray([ randRange(10, 99), randRange(100, 999), randRange(1000, 9999) ]) randFromArray([100, 1000]) 1

When we multiply a whole number by 100, we add two zeros to the end of the number.

When we multiply a whole number by 1000, we add three zeros to the end of the number.

\large{SMALL_FACTOR \times BIG_FACTOR = SMALL_FACTOR * BIG_FACTOR}

\large{BIG_FACTOR \times SMALL_FACTOR = SMALL_FACTOR * BIG_FACTOR}