language: C++ (gcc-4.3.4)
date: 108 days 2 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*   < Joanie Decopain >                                    
          < Program 2>       
        < january 3, 2012>     */                  
 
#include <iostream> 
using namespace std; 
 
int main() 
{ 
   double celsius ;
   double fahrenheit;
 
   cout  <<  "\n\n\n\n\n\t\t\t\t\t";
 
   cin >>celsius; 
   cout << "Enter temperature in celsius:" << celsius << endl; 
  
   // Calculate the temperature. 
   fahrenheit = (9/5)*celsius+32; 
    
    cout  <<  "\t\t\t\t\t"; 
 
   // Display the temperture. 
   cout << "Temperature in fahrenheit is:" << fahrenheit<< endl; 
 
   cout  <<  "\n\n\n\n\n";
 
   return 0; 
}