#Logica de Programacion
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<meta name='description' content='Curso ONE Alura Latam | Logica de Programacion'>
<title> Curso ONE - Logica de Progra </title>
</head>
<body>
<h3> Gasolina o Alcohol?</h3>
<script>
<!-- Gasolina -->
var tanque = 40;
var km_consum_tg = 480;
var prom_g = km_consum_tg/tanque
<!-- Alcohol -->
var tanque = 40;
var km_consum_ta = 480
var alpro = km_consum_ta/tanque;
document.write('<br>');
document.write('El consumo total de gasolina es ', prom_g, ' por km/l');
document.write('<br>');
document.write('<br>');
document.write('El consumo total de alcohol es ', prom_a, ' por km/l');
document.write('<br>');
</script>
</body>
</html>
#Fin