SHARE
TWEET

brodawatoziomal

a guest Oct 21st, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4.     <title>Moc Samochodu</title>
  5.     <meta charset="UTF-8"/>
  6. </head>
  7. <body>
  8.     <form>
  9.     Podaj liczbe kliowat√≥w: <input type="text" id="input" value="">
  10.     <br><br>
  11.     <button onclick="return wynik();">
  12.     Pobierz i przelicz na konie mechaniczne
  13.     </button>
  14.     <p id="wynik"></p>
  15.     </form>
  16.     <script>
  17.         function kW_na_KM(kW)
  18.         {
  19.             return kW/0.736;
  20.         }
  21.         function wynik()
  22.         {
  23.             var x=Number(document.getElementById("input").value);
  24.             var y=kW_na_KM(x);
  25.             document.getElementById("wynik").innerHTML=y;
  26.             return false;
  27.         }
  28.     </script>  
  29. </body>
  30. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top