Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <title>Kilometers to cm Length Converter</title> <body> <h2>Length Converter</h2> <p>Type a value in the Kilometers field to convert the value to cm:</p> <p> <label>Kilometers</label> <input id="inputKilometers" type="number" placeholder="Kilometers" oninput="LengthConverter(this.value)" onchange="LengthConverter(this.value)"> </p> <p>cm: <span id="outputcm"></span></p> <script> function LengthConverter(valNum) { document.getElementById("outputcm").innerHTML=valNum*100000; } </script> </body> </html>