Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Add hint to define divisible
Browse files Browse the repository at this point in the history
Reviewers: eater

Reviewed By: eater

Differential Revision: http://phabricator.khanacademy.org/D9620
  • Loading branch information
petercollingridge committed Jun 4, 2014
1 parent 5a35f22 commit 0beb83f
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions exercises/divisibility_tests.html
Expand Up @@ -35,10 +35,10 @@
<var id="FACTOR">2</var>
</div>

<div class="hints">
<div class="hints" data-apply="appendContents">
<p>Any even number is divisible by <code>2</code>.</p>
<p class="final_answer" data-if="DIVISIBLE">
<code><var>NUMBER</var></code> is even, so yes, it is
<code><var>NUMBER</var></code> is even, so it is
divisible by <code>2</code>.
</p>
<p class="final_answer" data-else="">
Expand Down Expand Up @@ -76,7 +76,7 @@
})()</var>
</div>

<div class="hints">
<div class="hints" data-apply="appendContents">
<div>
<p>
A number is divisible by <code><var>FACTOR</var></code>
Expand Down Expand Up @@ -190,7 +190,7 @@
<var id="FACTOR">4</var>
</div>

<div class="hints">
<div class="hints" data-apply="appendContents">
<div>
<p>
A number is divisible by <code>4</code> if the last
Expand Down Expand Up @@ -248,7 +248,7 @@
<var id="FACTOR">5</var>
</div>

<div class="hints">
<div class="hints" data-apply="appendContents">
<p>
A number is divisible by <code>5</code> if the last
digit is a <code>0</code> or a <code>5</code>.
Expand Down Expand Up @@ -279,7 +279,7 @@
<var id="FACTOR">10</var>
</div>

<div class="hints">
<div class="hints" data-apply="appendContents">
<p>
A number is divisible by <code>10</code> if the last
digit is a <code>0</code>.
Expand All @@ -299,6 +299,14 @@
</div>
</div>
</div>

<div class="hints">
<p>
<code><var>NUMBER</var></code> is divisible by
<code><var>FACTOR</var></code> if it can be divided by
<code><var>FACTOR</var></code> without leaving a remainder.
</p>
</div>
</div>
</body>
</html>

0 comments on commit 0beb83f

Please sign in to comment.