Advertisement
Joao_Joao

Questão 42 Lista de Exercícios IFPB

May 10th, 2022
1,026
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void main() {
  4.   double peso, altura;
  5.   printf("Digite o peso: ");
  6.   scanf("%lf", &peso);
  7.   printf("Digite a altura: ");
  8.   scanf("%lf", &altura);
  9.  
  10.   double imc = peso / (altura * altura);
  11.   printf("O IMC eh: %.2f\n", imc);
  12. }
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement