Temperature of a city in fahrenheit degrees is input through the keyboard. Write a program to convert this temperature into in each subject is 100. - Code With Friends

Breaking

Home Top Ad

Search Your Questions

Thursday, February 21, 2019

Temperature of a city in fahrenheit degrees is input through the keyboard. Write a program to convert this temperature into in each subject is 100.

#include<stdio.h>
int main()
{
    float temperature, centigrade;
    printf("Enter the temperature of your city in fahrenheit  ");
    scanf("%f",&temperature);

    centigrade=(temperature-32)*5/9;
    printf("The temperature of your city in centigrade  %f\n",centigrade);

    }








No comments:

Post a Comment