PLEASE ALWAYS USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/ http://www.cplusplus.com/articles/z13hAqkS/
Hint: You can edit your post, highlight your code and press the <> formatting button.
You can use the preview button at the bottom to see how it looks.
Doubles are preferred over floats.
There are two other ways to solve your original problem.
1. Have the function celsius. double showF( doubleconst fahrenheit, doubleconst celsius);
or
2. Pass celsius by reference. void showF( doubleconst fahrenheit, double& celsius);