Question 2: Write a program to convert Fahrenheit to Celsius

#include"stdio.h"
void main()
{
    
    
    float f,c;
    printf("please input the Fahrenheit :\n");
    scanf("%f",&f);
    c=(f-32)*5/9.0;
    printf("the Celsius degree  is :%.2f \n",c);
}

Guess you like

Origin blog.csdn.net/m0_54624966/article/details/113107563