December 23, 2024
05:28
Facebook
Twitter
Linkedin
Pinterest
Home
Research
Market Data
Submit Press Release
Menu
Home
Research
Market Data
Submit Press Release
Enter Keyword
Search for:
Search
Search
Arts
Business
Climate
Economy
Entertainment
Featured
Health
Latest News
Media
Politics
Sports
Technology
Travel
Trending
Menu
Arts
Business
Climate
Economy
Entertainment
Featured
Health
Latest News
Media
Politics
Sports
Technology
Travel
Trending
Skip to content
BMI Calculator
body { font-family: Arial, sans-serif; margin: 20px; } input[type="number"] { width: 100%; padding: 10px; margin: 5px 0; } button { padding: 10px; }
BMI Calculator
Weight (kg):
Height (m):
Calculate BMI
function calculateBMI() { const weight = parseFloat(document.getElementById('weight').value); const height = parseFloat(document.getElementById('height').value); if (!weight || !height) { document.getElementById('bmiResult').innerText = "Please enter valid values."; return; } const bmi = weight / (height * height); document.getElementById('bmiResult').innerText = `Your BMI is: ${bmi.toFixed(2)}`; }