Answer:
#include <stdio.h>
int main()
{
double weight;
double height;
double bmi;
printf("Enter your weight in KG: ");
scanf("%lf", &weight);
printf("Enter your height in meters: ");
scanf("%lf", &height);
bmi = (weight / (height * height));
if (bmi < 20)
{
printf("Your BMI is %lf", bmi);
}
return 0;
}
-----------
Hope I've helped