int x= 10,y = 3;
Double z;
z = x/(y * 1.0);
Data division results of two types of int will default to type int, and if one of them is type double, the result is type double.
Make a cast or multiply one of the numbers by 1.0 to get a double-precision type.