Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main(){
- float a, p, imc;
- printf("digite seu peso (kg) e altura (m): ");
- scanf("%f %f", &p, &a);
- imc = p/(a*a);
- if(a == 0 || p == 0) printf("voce non ecxiste!!");
- else{
- printf("\nseu IMC eh: %f", imc);
- }
- return(0);
- }
Add Comment
Please, Sign In to add comment