All the values used in the calculation are of type int, so an integer divide will be done.
Example 22/7 will give 3 as the result.
If you want a floating point divide, make sure that at least one of the values is a floating point type
Example 22/7.0 7.0 is of type double
or 22.0f/7 22.0f is of type float
Fixed your formula but it's not doing what you thought it should.
There is no reason to say 1* a number or 1\ a number but I left it in because you might have a reason.
n/1 is how many 1s go into the number, which will return the number, n (for positive integers). 1/n will give how many times the number goes into 1. For positive integers larger than 1, this will yield the fraction 1 / n, which will always be smaller than n and smaller than 1. Big difference.