『代码』··By/蜜汁炒酸奶

摄氏温度——华氏温度对照表

/* 功能:摄氏温度——华氏温度对照表 日期:2013-05-08 */ #include <stdio.h> #include <stdlib.h> #include <math.h> int main(void) { int C; double F; printf(“摄氏温度 华氏温度n”); C = 0; F = C; do { F = (double)C * 9 / 5 + 32.0; printf(“%d %.2lfnn”,C,F); C += 5; }while(C <= 100); printf(“n”); system(“pause”); return 0; }

预览
Loading comments...
0 条评论

暂无数据

example
预览