/* Name: Celtigrade temperature to Fahrenheit temperature Author: Dykstra Description: A program to translate the degree of Celtigrade thermometer to the degree of Fahrenheit thermometer. Date: 2000-11-4 Copyright: Dykstra */ #include #define SPACE (0x20) // Marco definition void wait(int key); // Function prototype int main(int argc, char *argv[]) { float centigrade, fahrenheit; printf("Please input the centigrade degree :"); scanf("%f", ¢igrade); fahrenheit = centigrade * 9 / 5 + 32; printf("Centigrade %g equals to Fahrenheit %g", centigrade, fahrenheit); wait(SPACE); return 0; } void wait(int key) { int ch; while ((ch = getchar()) != key) ; return; }