convert_temp - scanf"%f"&tempf tempc...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/* convert_temp.c * Program to convert Fahrenheit to Celsius. */ #include <stdio.h> int main() { float tempc, tempf; printf("Temperature in degrees Fahrenheit? ");
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: scanf("%f", &tempf); tempc = (5.0/9.0)*(tempf - 32.0); printf("Temperature in degrees Celsius: %.2f\n", tempc); return 0; }...
View Full Document

Ask a homework question - tutors are online