cent.c

来自「linux下的C语言开发」· C语言 代码 · 共 25 行

C
25
字号
/*-*//******************************************************** * Question:						* *	Why does this program print out:		* *							* *	Celsius:101 Fahrenheit:213			* *							* *	and nothing else?				* ********************************************************//*+*/#include <stdio.h>/* * This program produces a Celsius to Fahrenheit conversion *    chart for the numbers 0 to 100. *//* the current Celsius temperature we are working with */int celsius;int main() {    for (celsius = 0; celsius <= 100; ++celsius);        printf("Celsius:%d Fahrenheit:%d\n",            celsius, (celsius * 9) / 5 + 32);    return (0);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?