<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calculo consumo </title>
</head>
<body>
<h3>¿Alcohol o gasolina?</h3>
<script>
var tanque = 40
var kms= 480
document.write("El carro recorre ", (kms/tanque), " kilometros por paca litro de gasolina")
document.write("<br><br>")
kms= 300
document.write("El carro recorre ", (kms/tanque), " kilometros por paca litro de alcohol")
</script>
</body>
</html>