if you want to make a float division you need to cast at least one of participating ints to float



x=a/(b - (float)c);