Buscar

código em C IMC

Esta é uma pré-visualização de arquivo. Entre para ver o arquivo original

/*UNIVERSIDADE FEDERAL DE GOIAS
Disciplina: Introdução a Computação
Aluno: Pedro Gabriel Bezerra
Data: 04/08/2017
Teste 4 */
#include <stdio.h>
#include <stdlib.h>
int main()
{
 float IMC, PESO, ALTURA;
 printf("Informe o seu peso: \n");
 scanf("%f", &PESO);
 printf("Informe sua altura: \n");
 scanf("%f", &ALTURA);
 IMC = PESO/(ALTURA*ALTURA);
 printf("O seu Indice de Massa Corporal e: %.1f \n", IMC);
 system("PAUSE");
 return 0;
}

Teste o Premium para desbloquear

Aproveite todos os benefícios por 3 dias sem pagar! 😉
Já tem cadastro?

Outros materiais