-
Notifications
You must be signed in to change notification settings - Fork 0
/
task.html
19 lines (19 loc) · 1.2 KB
/
task.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<b>Cotangent</b> <a class=right href="https://hyperskill.org/learn/step/6347">Open on JetBrains Academy</a>
<br><br>
<html>
<head></head>
<body>
<p>Write a program that reads an integer representing an angle (in <em>degrees</em>) and prints its cotangent.</p>
<p>Calculate the cotangent as either <span class="math-tex">\(\frac{cos\phi}{sin\phi}\)</span> or <span class="math-tex">\(\frac{1}{tan\phi}\)</span>.</p>
<p>Round the result to <strong>10</strong> decimal places.</p>
<p><button class="btn-sm btn-outline-secondary" onclick="getElementById('hint-339').style.display='inline'"> Hint </button> </p>
<div id="hint-339" style="display:none;">
Take into account that the trigonometric functions
<code class="java">sin()</code>,
<code class="java">cos()</code> and
<code class="java">tan()</code> take an angle in radians. You might need to convert the value from degrees to radians first.
</div>
<p></p>
</body>
</html><br><b>Sample Input:</b><br>62<br><br><b>Sample Output:</b><br>0.5317094317<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/6256">Show topic summary</a>