in reply to Re^2: Subroutine not correct (I think)
in thread Subroutine not correct (I think)
What steps have you taken to inspect the return value of your distance() function?
Also consider re-reading sprintf and printf and the replies you already got. Many of them addressed two problems in your program, but changing the formula is only one problem.
|
|---|