So I am trying to write a program with a function that prompts the user to enter degrees Fahrenheit, and then convert it to Celsius in main(). The program compiles fine and all but when I run it and type in 93 as Fahrenheit it comes out -18 celsius, when the answer should be 34. What have I done wrong here?
#include <iostream>
#include <iomanip>
using namespace std;
MottMan from what it looks like there I would be doing the conversion in the function instead of main and the assignment calls for me to let main do the conversion but to write a function that prompts the user to input degrees Fahrenheit.
Also firedraco I've read that and haven't really understood it that's why I came here. I've only been programming in C++ for about a week and this is my first programming language all around.