Celsius to Farenheit program
I need to write a code that tells me "It is freezing" when is below 32 and "It is not freezing" when above 32 degrees. I'm a begineer on this things and the code below a friend helped me so don't assume I understand evrything about programming.
These code only converts F->C How can i modify it to say "It is freezing" and "It is not freezing" can you please post the code thanks
Code:
//robert cruz
#include <iostream>
using namespace std;
int main (void){
//define variables
float c = 0.0;
int f = 0;
//request inputs
cout << "Enter temperature in C ";
cin >> c;
//calculate
f = c * 9 / 5 + 32;
//show results
cout << endl << " This temperature in F is "<< f << endl;
return 0;
}