c语言编写:单位转换厘米转英寸
#include <stdio.h>
int main() { float cm, inch; printf("请输入厘米数:"); scanf("%f", &cm); inch = cm / 2.54; printf("%.2f厘米等于%.2f英寸\n", cm, inch); return 0; }
原文地址: https://www.cveoy.top/t/topic/gfCy 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
#include <stdio.h>
int main() { float cm, inch; printf("请输入厘米数:"); scanf("%f", &cm); inch = cm / 2.54; printf("%.2f厘米等于%.2f英寸\n", cm, inch); return 0; }
原文地址: https://www.cveoy.top/t/topic/gfCy 著作权归作者所有。请勿转载和采集!