Advertisement
Joao_Joao

Questão 42 Lista de Exercícios IFPB

May 10th, 2022
894
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement