2006.10.23(9)
来源:互联网 发布:js判断复选框是否选中 编辑:程序博客网 时间:2024/05/18 03:23
#include<stdio.h>
#define lowerlimit 32
#define upperlimit 100
#define stepsize 2
float FahrenheitToCelsius(float f);
main()
{
float c,f;
clrscr();
printf("Fahrenheit to Celsius table./n");
printf(" C F/n");
for(f=lowerlimit;f<=upperlimit;f+=stepsize)
{
printf("%3g %3.1f/n",f,FahrenheitToCelsius(f));
}
getch();
}
float FahrenheitToCelsius(float f)
{
return((f-32)*5/9);
}
#define lowerlimit 32
#define upperlimit 100
#define stepsize 2
float FahrenheitToCelsius(float f);
main()
{
float c,f;
clrscr();
printf("Fahrenheit to Celsius table./n");
printf(" C F/n");
for(f=lowerlimit;f<=upperlimit;f+=stepsize)
{
printf("%3g %3.1f/n",f,FahrenheitToCelsius(f));
}
getch();
}
float FahrenheitToCelsius(float f)
{
return((f-32)*5/9);
}
- 2006.10.23(9)
- 2006.10.23
- 2006.10.23+
- 2006.10.23++
- 2006.10.23+++
- 2006.10.23(23)
- 2006.10.23(5)
- 2006.10.23(6)
- 2006.10.23(7)
- 2006.10.23(8)
- 2006.10.23(10)
- 2006.10.23(11)
- 2006.10.23(12)
- 2006.10.23(13)
- 2006.10.23(14)
- 2006.10.23(15)
- 2006.10.23(16)
- 2006.10.23(17)
- 2006.10.23(6)
- 一个简单实用的分页控件
- 2006.10.23(7)
- 2006.10.23(8)
- 与朋友的对话 GP与OO
- 2006.10.23(9)
- fork点滴
- 2006.10.23(10)
- 2006.10.23(11)
- 2006.10.23(12)
- How do I bind the values of an enum to a ComboBox?
- MFC行将远去啦
- 2006.10.23(13)
- 2006.10.23(14)