Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const markKg = 75;
- const johnKg = 89;
- const markAlt = 1.70;
- const johnAlt = 1.90;
- const imc = markKg / (markAlt^2);
- const imc1 = johnKg / (johnAlt^2);
- const resultado = imc - imc1;
- console.log(`A massa de Mark e John tem a diferença de: ${resultado.toPrecision(3)}`);
- console.log(`IMC de Mark: ${imc.toPrecision(4)}`);
- console.log(`IMC de John: ${imc1.toPrecision(4)}`);
- const diferença = imc > imc1;
- console.log(`O IMC de Mark é maior que o de John? ${diferença}`);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement