Saturday, January 30, 2010

CHAP 1[H]d Converting Fahrenheit to Centigrade degrees

Temperature of a city in Fahrenheit degrees is input through the keyboard. Write a program to convert this temperature into Centigrade degrees.

void main()
{
float c,f;
printf("\nInput the temperate(Fahrenheit)");
scanf("%f",&f);
c= (f-32)*(100.0/180.0);
printf("\nThe temperature in Celsius is %f",c);
}

1 comment:

  1. Make Money from Gambling, Casino and Sports Betting
    It's fun and it's งานออนไลน์ been a lot of fun. People who do this online are always betting on sports. gambling, casino, poker, slots, and real money

    ReplyDelete