#include <stdio.h>
#include <math.h>
int main()
{
float peso,altura,imc;
imc=0;
printf("digite sua altura? "); imc
= (peso
/pow(altura
,2 )); //usando a função pow printf(" IMC igual a %10.2f ",imc
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CgppbnQgbWFpbigpIAp7ICAgICAgCiAgICBmbG9hdCBwZXNvLGFsdHVyYSxpbWM7CiAgICBpbWM9MDsKICAgIHByaW50ZigiZGlnaXRlIHNldSBwZXNvID8iKTsKICAgIHNjYW5mKCIlZiIsJnBlc28pOwogICAgcHJpbnRmKCJkaWdpdGUgc3VhIGFsdHVyYT8gIik7CiAgICBzY2FuZigiJWYiLCZhbHR1cmEpOwogICAgaW1jPSAocGVzby9wb3coYWx0dXJhLDIgKSk7IC8vdXNhbmRvIGEgZnVuw6fDo28gcG93CiAgICBwcmludGYoIiBJTUMgaWd1YWwgYSAgJTEwLjJmICIsaW1jKTsKCiAgICByZXR1cm4gMDsKfQ==