You are doing integer division. 10/3 = 3
There is no fractional part.

If you want a fractional part, cast the numerator to double: ((double)input1)/input2