Answered You can hire a professional tutor to get the answer.
I have a working code but I need to add something that allows the code to work if for instance the temperature input was 98.6 as well as if the
I have a working code but I need to add something that allows the code to work if for instance the temperature input was 98.6 as well as if the temperature is 98. What do I need to add?
here is my current working code:
#include <iostream>#include <string>using namespace std;int main() { int f; int answer; cout << "Temp in Fahrenheit: "; cin >> f; cout << f << endl; answer = (((f-32) * 5) / 9); cout << "The temp in Celsius is " << answer << endl; return 0;}