有么能人帮我做下把。。。感激不尽。。。做好了追分

[复制链接]
查看11 | 回复1 | 2010-10-27 07:01:27 | 显示全部楼层 |阅读模式
write a well documented program that print out a table of temperatures in Fahrenheit, from 32 to 100, in steps of 2 degrees, with the equivalent Celsius.
To convert a temperature from Fahrenheit to Celsius use the equation:
Temp(C)= (Temp(F)-32)*5/9
Include headings on the columns of figures.
Use the following formatting in your printf to produce a tabulated output:
printf("%4.1f \t %4.1f\n",Fahr, Cent);
this format will print each variable in a field width of 4 digits,with one place of decimal. the"\t" inserts a tab to space the columns.
C语言额。。

回复

使用道具 举报

千问 | 2010-10-27 07:01:27 | 显示全部楼层
英盲表示很无力~……
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行