Skip to content
Newer
Older
100644 44 lines (41 sloc) 2.06 KB
ab62a15 @pappy74 exercise: multiplying and dividing negative numbers
pappy74 authored May 30, 2011
1 <!DOCTYPE html>
bd64ad2 @petercollingridge Avoid having two operators together by adding parentheses around nega…
petercollingridge authored Jun 17, 2015
2 <html data-require="math math-format">
cde9e9f @jeresig Re-run the exercises through the updated cleaner.
jeresig authored Apr 24, 2013
3 <head>
0f0c630 @cbhl Clean up the exercise files using the new cleaning utility. (II)
cbhl authored Apr 16, 2013
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored Apr 10, 2012
5 <title>Multiplying and dividing negative numbers</title>
ac1415e @spicyj Use requirejs for module loading
spicyj authored Mar 5, 2014
6 <script data-main="../local-only/main.js" src="../local-only/require.js"></script>
ab62a15 @pappy74 exercise: multiplying and dividing negative numbers
pappy74 authored May 30, 2011
7 </head>
8 <body>
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored Apr 10, 2012
9 <div class="exercise">
0ebfad0 @petercollingridge Ensure hints work when one number is zero
petercollingridge authored Jan 7, 2015
10 <div class="vars" data-ensure="A &lt; 0 || B &lt; 0">
11 <var id="A">randRange(-9, 9)</var>
12 <var id="B">randRangeExclude(-9, 9, [0])</var>
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored Apr 10, 2012
13 <var id="C">A * B</var>
14 </div>
ab62a15 @pappy74 exercise: multiplying and dividing negative numbers
pappy74 authored May 30, 2011
15
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored Apr 10, 2012
16 <div class="problems">
17 <div id="multiplying">
bd64ad2 @petercollingridge Avoid having two operators together by adding parentheses around nega…
petercollingridge authored Jun 17, 2015
18 <p class="question"><code><var>A</var> \times <var>negParens(B)</var> = ?</code></p>
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored Apr 10, 2012
19 <div class="solution"><var>C</var></div>
20 <div class="hints">
2e12f20 @jeresig Run clean-exercises on the HTML exercises, fixing the entities inside…
jeresig authored Apr 25, 2013
21 <p data-if="A < 0 && B < 0">A negative times a negative is a positive.</p>
0ebfad0 @petercollingridge Ensure hints work when one number is zero
petercollingridge authored Jan 7, 2015
22 <p data-else-if="A < 0">A negative times a positive is a negative.</p>
23 <p data-else-if="A != 0">A positive times a negative is a negative.</p>
24 <p data-else=""><code>0</code> times any number is <code>0</code>.</p>
bd64ad2 @petercollingridge Avoid having two operators together by adding parentheses around nega…
petercollingridge authored Jun 17, 2015
25 <p><code><var>A</var> \times <var>negParens(B)</var> = <var>C</var></code></p>
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored Apr 10, 2012
26 </div>
27 </div>
ab62a15 @pappy74 exercise: multiplying and dividing negative numbers
pappy74 authored May 30, 2011
28
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored Apr 10, 2012
29 <div id="dividing">
bd64ad2 @petercollingridge Avoid having two operators together by adding parentheses around nega…
petercollingridge authored Jun 17, 2015
30 <p class="question"><code><var>C</var> \div <var>negParens(B)</var> = ?</code></p>
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored Apr 10, 2012
31 <div class="solution"><var>A</var></div>
32 <div class="hints">
2e12f20 @jeresig Run clean-exercises on the HTML exercises, fixing the entities inside…
jeresig authored Apr 25, 2013
33 <p data-if="C < 0 && B < 0">A negative divided by a negative is a positive.</p>
0ebfad0 @petercollingridge Ensure hints work when one number is zero
petercollingridge authored Jan 7, 2015
34 <p data-else-if="C < 0">A negative divided by a positive is a negative.</p>
35 <p data-else-if="C != 0">A positive divided by a negative is a negative.</p>
36 <p data-else=""><code>0</code> divided by any number is <code>0</code>.</p>
bd64ad2 @petercollingridge Avoid having two operators together by adding parentheses around nega…
petercollingridge authored Jun 17, 2015
37 <p><code><var>C</var> \div <var>negParens(B)</var> = <var>A</var></code></p>
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored Apr 10, 2012
38 </div>
39 </div>
40 </div>
41 </div>
cde9e9f @jeresig Re-run the exercises through the updated cleaner.
jeresig authored Apr 24, 2013
42 </body>
43 </html>
Something went wrong with that request. Please try again.