Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- </head>
- <body>
- <form>
- Podaj temperature:<input type="text" id="a">
- </form>
- <button onclick="faren()">faren</button>
- <button onclick="calvin()">calvin</button>
- <div id="wynik"> </div>
- <script>
- var x = Number(document.getElementById("a").value);
- function faren()
- {
- var stopnie = (x * 1,8) + 32;
- document.getElementById("wynik").innerHTML=stopnie;
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement