Convert the temperature into centigrade c++

April 25, 2013

Convert the temperature into centigrade c++



Declare a variable that holds the temperature of a city in Fahrenheit degrees. Write a program to convert this temperature into Centigrade degrees. Use the formula:
C = 5 / 9 * (F – 32)





STEP#1    Start
STEP#2    Declare the Fahrenheit, Centigrade
STEP#3    Assign value 90 to Fahrenheit
STEP#4    Convert value of Fahrenheit into Centigrade
STEP#5    Centigrade= 5/9*(Fahrenheit -32)
STEP#6    Display the value of Centigrade
STEP#7    End



#include <iostream>
using namespace std;

int main()
{
   float F,C;
   F=90.0;
   C=(5.0/9.0)*(F-32.0);

   cout<< C;
   return 0;
}









Convert the temperature into centigrade c++

You Might Also Like

0 comments

Popular Posts

Like us on Facebook

Flickr Images