Computer Science, asked by TanushJangid5039, 1 year ago

By usong label and choice box write the program to convert meter to cm

Answers

Answered by chetan2222
0
Step 1) Add HTML:

Example - Feet to Meter

<p>
  <label>Feet</label>
  <input id="inputFeet"type="number"placeholder="Feet"
  oninput="lengthConverter(this.value)"onchange="lengthConverter(this.value)">
</p>
<p>cm: <spanid="outputMeters"></span></p>

Step 2) Add JavaScript:

Example - Feet to Meter

/* When the input field receives input, convert the value from feet to meters */
functionlengthConverter(valNum) {
  document.getElementById("outputMeters").innerHTML = valNum / 0.0022046;
}

Try it Yourself »

Convert from Feet to other Measurements

The table below shows how to convert from Feet to other Length measurements:


thank you

#chetan2222.


PLEASE MARK MY ANSWER AS A BRAINLIEST ANSWER.

THANK YOU.
Similar questions