/ Published in: C
URL: bmi
Body Mass Index Solver
Expand |
Embed | Plain Text
//Icd Dpt // This program calculates the Body Mass Index of a human body. It has been written in C. #include<stdlib.h> #include<stdio.h> #include<math.h> #define EXP 2 main(void) { float bmi, wei, hei; system("clear"); printf("*** This program calculates the Body Mass Index of a human body. Height should be entered in meters and weight in kgs *** \n"); scanf(" \n%f",&wei); scanf("%f",&hei); hei=pow(hei, EXP); bmi=wei/(hei); fflush(stdin); getchar(); return 0; }
You need to login to post a comment.
