#include <iostream>
#include <string>
using namespace std;
int main()
{
// declare variables
string name;
float fahrenheit, celcius;
//display greeting
cout << "Please enter your first name: ";
cin >> name;
//ask for fahrenheit
cout << "Enter a temperature in Fahrenheit degrees please: ";
cin >> fahrenheit;
//write equation
celcius = 5.0f/9.0f * (fahrenheit - 32.0f);
//display result
cout << "Hi " << name << endl << endl;
cout << "The equivalent to " << fahrenheit << "degrees Fahrenheit is" << celcius << "degrees Celcius" << endl << endl;
return 0;
}
I'm not sure what exactly is incorrect I have checked so many times and played with the code to get rid of the errors to no avail. Any help is appreciated.