<!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>Document</title>
</head>
<body>
<h3>¿Alcohol o gasolina?</h3>
<script>
var tanque = 40
var tanqueGasolina = 480
var tanqueAlcohol = 300
var saltoLinea = "<br>"
var consumoGas = tanqueGasolina / tanque
document.write("Con Gasolina se consumen: " + consumoGas + "litros")
document.write("<br>")
var consumoAlcohol = tanqueAlcohol / tanque
document.write("Con Alcohol se consumen: " + consumoAlcohol + "litros")
</script>
</body>
</html>