language: C++ (gcc-4.3.4)
date: 109 days 5 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 = 1.8*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; 
} 
 
  • upload with new input
  • result: Success     time: 0.01s    memory: 2860 kB     returned value: 0

    50
    
    
    
    
    					Enter temperature in celsius:50
    					Temperature in fahrenheit is:122