type concersion

hi people!

Have to solve the following exercise.

h=?

h= 1/((1/a)+(1/b)+(1/c))

a,b,c, should be int-values. If they would be double, it schould be easy to solve. But how should I convert int to get h as double-value?

At least a hint how to start would be quite helpful!

thanks!
a hint ... would be quite helpful

http://en.cppreference.com/w/cpp/language/static_cast
Topic archived. No new replies allowed.