C Primer Plus(第六版) P18 编程答案

Time:2019/4/23
writer:Hushine
/*
	1英寸复(in)=2.54厘米(cm)
*/
#include "stdio.h"
int main()
{
	float feet, cm;
	scanf_s("%f", &feet);
	cm = 2.54 * feet;
	printf("%f feet = %f cm", feet, cm);
	return 0;
}

猜你喜欢

转载自blog.csdn.net/qq_45816372/article/details/105895988