<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Calculo Consumo</title>
</head>
<body>
<h3>¿Alcohol o gasolina?</h3>
<script>
var tank = 40;
var distance = 480;
document.write("Consumo de Gasolina por Kilometro recorrido es: " + (distance/tank) + " Km/Lt");
document.write("<br>");
distance = 300;
document.write("<br>");
document.write("Consumo de Alcohol por Kilometro recorrido es: " + (distance/tank) + " Km/Lt");
</script>
</body>
</html>