float celcius = (5.0/9.0)*(fahrenheit-32)
then just output the values needed
Complete the following C++ program. The program should compute and output the Celsius value corresponding to the given Fahrenheit value.
//************************************************
// Celsius program
// This program outputs the Celsius temperature
// corresponding to a given Fahrenheit temperature
//************************************************
#include <iostream>
using namespace std;
int main()
{
const float fahrenheit = 72.0;
1 answer