Professional Documents
Culture Documents
Example
Input
Temperature in fahrenheit = 205
Output
#include <stdio.h>
int main()
{
float celsius, fahrenheit;
return 0;
}
%.2f is used to print fractional values only up to two decimal places. You can also
use %f to print fractional values normally up to six decimal places.
Output
Enter temperature in Fahrenheit: 205
205.00 Fahrenheit = 96.11 Celsius