I'm not really sure how to execute this...
double fahrenheit;
fahrenheit = 0;
while (fahrenheit != "q")
I'm going to use a scanf to get the value of fahrenheit. fahrenheit is a double and q is a character so obviously it isn't really liking it... Can someone please tell me how to make this one work?
Thank you guys for trying and explaining it to me but I'm really in the early stages of learning C or just programming in general. It's a simple exercise in our book and I haven't really learned all those stuff yet. Basically, if they input q, nothing happens. If they input anything else but q, something happens. Is there like a REALLY SIMPLE like 1+1=2 kind of simple formula here for me to execute this?