Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main(int argc, char const *argv[])
- {
- float alturaBrutus = 1.84;
- float alturaOlivia = 1.76;
- float pesoBrutus = 122;
- float pesoOlivia = 45;
- float IMCMax = 25;
- float IMCMin = 18.5;
- float IMCBrutus = pesoBrutus/(alturaBrutus * alturaBrutus);
- float IMCOlivia = pesoOlivia/(alturaOlivia * alturaOlivia);
- float IMCIdealBrutus = (IMCMax - IMCBrutus) * alturaBrutus * alturaBrutus * -1;
- float IMCIdealOlivia = (IMCMin - IMCOlivia) * alturaOlivia * alturaOlivia;
- printf("\nIMC de Brutus:%.2f\n\nIMC de Olivia: %.2f\n\n", IMCBrutus, IMCOlivia);
- printf("\nPerda necessaria para Brutus: %.2f Kg\n\nGanho necessario para Olivia: %.2f\n\n\n\n", IMCIdealBrutus, IMCIdealOlivia);
- system ("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement