#include <stdio.h>

float bmi(float m,float l){
    return m/((l/100)*(l/100));
}
int main(){
    float m,l;
    printf("身長をcmで入力してください");scanf("%f",&l);
    printf("体重をkgで入力してください");scanf("%f",&m);
    printf("BMIは%.1f",bmi(m,l));
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: