Giới thiệu sản phẩm
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<label>đổi độ F sang độ C</label>
<p>nhập độ F</p>
<input type = "number" id = 'a'>
<button onclick="check()">submit</button>
</body>
<script>
function check()
{
let a = parseFloat(document.getElementById("a").value);
let C = (a - 32)/(1.8)
document.write(a + " độ F bằng " + C + " độ C")
}
</script>
</html>
Hình ảnh sản phẩm

Sản phẩm cùng tác giả
Sản phẩm liên quan
Không có sản phẩm nào
Đăng nhập để tham gia bình luận