Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  BMI.c
Language: C/C++
Code:
#include <stdio.h>
main()
{
     float weight, height, BMI;
     printf("Please enter your weight in kilogram : ");
     scanf("%f", &weight);
     printf("Please enter your height in meter : ");
     scanf("%f", &height);
     BMI = weight / height * height;
     printf("Your BMI value is %.3f \n", BMI);
     return 0;
}
Comments: