-
Notifications
You must be signed in to change notification settings - Fork 0
/
task.html
17 lines (17 loc) · 1.01 KB
/
task.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<b>FizzBuzz</b> <a class=right href="https://hyperskill.org/learn/step/8442">Open on JetBrains Academy</a>
<br><br>
<html>
<head></head>
<body>
<p><strong>FizzBuzz </strong>is a famous code challenge used in interviews to test basic programming skills. It's time to write your own implementation.</p>
<p>Print numbers from 1 to 100 <strong>inclusively </strong>following these instructions:</p>
<ul>
<li>if a number is multiple of 3, print <code class="java">"Fizz"</code> instead of this number</li>
<li>if a number is multiple of 5, print <code class="java">"Buzz"</code> instead of this number</li>
<li>for numbers that are multiples of both 3 and 5, print <code class="java">"FizzBuzz"</code></li>
<li>print the rest of the numbers unchanged.</li>
</ul>
<p>Output each value on a separate line.</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/6065">Show topic summary</a>