#import <Foundation/Foundation.h>

//標準体重を求める関数
double calcWeight(double height)
{
	const double BMI = 22;
	double stdWeight;
	stdWeight =  pow((height / 100), 2) * BMI;
	return stdWeight;
}

int main (int argc, const char * argv[]) {
	
	double height;
	double stdWeight;
	
	//175cmの標準体重を求める
	height = 175;
	stdWeight = calcWeight(height);
	printf("%.1fcm -> %.1fkg \n", 
		   height, stdWeight);
	
	//160cmの標準体重を求める
	height = 160;
	stdWeight = calcWeight(height);
	printf("%.1fcm -> %.1fkg \n", 
		   height, stdWeight);
    return 0;
	
}
