-
Notifications
You must be signed in to change notification settings - Fork 0
/
task.html
15 lines (15 loc) · 989 Bytes
/
task.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<b>How long is that word?</b> <a class=right href="https://hyperskill.org/learn/step/6896">Open on JetBrains Academy</a>
<br><br>
<html>
<head></head>
<body>
<p>Write a program that calculates the length of a word from the input and prints it out together with the word in the format <code class="java">word has N letters</code>. There will always be more than one letter in the word.</p>
<p><button class="btn-sm btn-outline-secondary" onclick="getElementById('hint-256').style.display='inline'"> Hint </button> </p>
<div id="hint-256" style="display:none;">
The length of the string can be calculated with the
<code class="java">len()</code> function.
</div>
<p></p>
</body>
</html><br><b>Sample Input:</b><br>serendipity<br><b>Sample Output:</b><br>serendipity has 11 letters<br><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/6037">Show topic summary</a>