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; }
AI 优化版
原文地址:https://www.cveoy.top/t/topic/oups 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
#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/oups 著作权归作者所有。请勿转载和采集!