To use a function, you must call a function (This is like the equivalent of the Main function in C#). By the way, you cannot do 9/5, since integer division will result in an integer, 1. Try 9.0/5.0 for the computation.