10/06/10 11:51:26
#include <stdio.h>
int main(void)
{
int i;
int low, high, step;
printf( "何cmから:" ); scanf( "%d", &low );
printf( "何cmまで:" ); scanf( "%d", &high);
printf( "何cmごと:" ); scanf( "%d", &step);
for(i=low; i<=high; i+=step) {
printf( "%dcm 標準体重=%.2fkg BMI(22)=%.2fkg\n", i, (i - 100) * 0.9, 22.0*i/100*i/100);
}
return 0;
}