c++ - How to display decimal points? -


i have tried everything. terminal im working on when put 1/5 = , try diplay a, it's 0. or if try 25/10 suppose 2.5, displays 2. tried using float, double, int. everything. please me.

1, 5, 25, 10 integers, calculating them produce integer results. try double x = 1.0/5.0 , double y = 25.0/10.0.