A PHP Error was encountered

Severity: 8192

Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

Filename: libraries/Filtered_db.php

Line Number: 23

Write a program in C++ to convert temperature in Kelvin to Fahrenheit
Q:

Write a program in C++ to convert temperature in Kelvin to Fahrenheit

0

Write a program in C++ to convert temperature in Kelvin to Fahrenheit

Sample Output:

 Convert temperature in Kelvin to Fahrenheit  :                        
---------------------------------------------------                    
 Input the temperature in Kelvin : 300                                 
 The temperature in Kelvin    : 300                                    
 The temperature in Fahrenheit : 80.33

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include 
using namespace std;
 
int main()
{
    float kel, frh;
		cout << "\n\n Convert temperature in Kelvin to Fahrenheit  :\n";
		cout << "---------------------------------------------------\n";	
    cout << " Input the temperature in Kelvin : ";
    cin >> kel;
    frh = (9.0 / 5) * (kel - 273.15) + 32;
    cout << " The temperature in Kelvin    : " << kel << endl;
    cout << " The temperature in Fahrenheit : " << frh << endl;
	cout << endl;
    return 0;
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now