Does it compile, execute and give the correct answer?
Type: Posts; User: Norm
Does it compile, execute and give the correct answer?
One problem could be the code is using int variables which will do int divisions:
9/10 = 0
Change the variable type to double to get better results.