-
Notifications
You must be signed in to change notification settings - Fork 0
/
task.html
15 lines (15 loc) · 958 Bytes
/
task.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<b>Captain</b> <a class=right href="https://hyperskill.org/learn/step/7284">Open on JetBrains Academy</a>
<br><br>
<html>
<head></head>
<body>
<p>Define a function that will add the word "captain" before the name of a person.</p>
<p>The function should be named <code class="java">captain_adder</code>, take one argument <code class="java">name</code> and print the string, i.e. it doesn't have to return anything.</p>
<p>You don't need to call your function, only implement it. Also, you don't need to take input, the <code class="java">name</code> variable should come to your function as an argument. </p>
<p><strong>Sample Input:</strong></p>
<p>Jack Sparrow</p>
<p><strong>Sample Output:</strong></p>
<p>captain Jack Sparrow</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/5900">Show topic summary</a>