#include<stdio.h>
int main(void)
{
double hight,weight,bmi;
while (1) {
puts("身長と体重を入力してください。");
printf("身長(㎝):"); scanf("%lf",&hight);
printf("体重(㎏):"); scanf("%lf",&weight);
bmi = weight / hight / hight * 10000;
bmi = weight / ( hight / 100 * hight / 100 );
if (bmi == 0)
break;
printf("身長:%5.1f(cm)\n",hight);
printf("体重:%5.1f(kg)\n",weight);
printf("あなたのBMI値は%5.1fです。\n", bmi);
}
printf("終了する\n");
return(0);
}