-
Notifications
You must be signed in to change notification settings - Fork 0
/
task.html
23 lines (23 loc) · 1.19 KB
/
task.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<b>Exactly 100 times</b> <a class=right href="https://hyperskill.org/learn/step/6716">Open on JetBrains Academy</a>
<br><br>
<html>
<head></head>
<body>
<p>Jane knows that the variable <em>n</em> stores some integer number (for example, 12345) and wants to print it exactly 100 times in one line. Help her and write down a single line of code that will print number <em>n</em> exactly 100 times.</p>
<p><button class="btn-sm btn-outline-secondary" onclick="getElementById('hint-251').style.display='inline'"> Hint </button> </p>
<div id="hint-251" style="display:none;">
Printing
<em>n</em> exactly 100 times is essentially
<strong>printing the result of</strong>
<strong>multiplying n by 100</strong>!
<strong> </strong>But, since
<em>n</em> is an integer, the result of
<em>n * 100</em> will simply be another integer and not
<em>n</em> 100 times. What can we change in an expression
<em>print(n * 100)</em> to make it print
<em>n</em> 100 times?
</div>
<p></p>
</body>
</html><br><br><font color="gray">Memory limit: 256 MB</font><br><font color="gray">Time limit: 15 seconds</font><br><br>
<a href="https://hyperskill.org/learn/step/6224">Show topic summary</a>