I have been messing around with using private variables and defining them through a separate function. When I do it this way though, it outputs the incorrect answer. I wrote some code that just asks for the variables and doesn't make the variables private and get the correct answer.

Here is the code that produces the incorrect answer
http://pastebin.com/HjyYWhkw

Here is the code that produces the correct answer
http://pastebin.com/1HRPwvHn

Just for reference, the variables are:
Pipe diameter = 2.08
velocity = 10.01
Kinematic Viscosity = .00001217

and the Reynold's Number output should be 1.71 E6

I have been looking at this for quite some time and can't see where it would be doing the math wrong. Can someone look and help out a little bit. Just now diving into C++ and am trying to make my own projects to learn as I go.

Thanks!