<h1>Interactuando con el Usuario</h1>
<script>
function linebreaks() {
document.write("<br>");
document.write("<br>");
document.write("<br>");
}
function print(phrase){
document.write(phrase)
linebreaks();
}
function calculateIMC(weight,height){
return (weight / (height * height ));
}
var nameinf=prompt("dijite su nombre");
var weightinf=prompt(nameinf+",dijite su peso:");
var heightinf=prompt(nameinf+",dijite su altura :");
calculate=calculateIMC(weightinf,heightinf);
print(nameinf + " tu imc es: " +calculate );
</script>