Huashi.cpp
资源名称:C++100.rar [点击查看]
上传用户:wszmarenbt
上传日期:2013-04-26
资源大小:2552k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- //THIS IS A SIMPLE PROGRAM FOR CHANGING SHESHI TO HUASHI .
- //FILE HUASHI.CPP
- #include <stdio.h>
- #include <conio.h>
- int main(void)
- {
- int LOWLIMIT,HIGHLIMIT;
- int HUASHI,SHESHI;
- LOWLIMIT=30;
- HIGHLIMIT=45;
- clrscr();
- printf("n -*-*-*-*-*-*-* A CHANGING SYSTEM *-*-*-*-*-*-*-n");
- printf("n***** THE FOLLOWING DATAS ARE THE HUASHI & SHESHI DEGREESn");
- printf("n -*-*-HUASHI-*-*- -*-*-SHESHI-*-*- n");
- for(SHESHI=LOWLIMIT;SHESHI<HIGHLIMIT;SHESHI++)
- {
- HUASHI=(9.0/5.0)*float(SHESHI)+32;
- printf(" %d %dn",HUASHI,SHESHI);
- }
- printf("n-*-*-*-*-*-* YOU CAN USE IT TO KNOW THE TEMPRATURE OF POEPLE *-*-*-*-*-*-n");
- getch();
- return 0;
- }