Assume x has type double and i and 1 have type int Modify th
Solution
x=(double)i/j;
Reason:As you have not mentioned i have given the answer in java ,In java you can do it using casting ,as i have done above.
Please do ask in case of any doubt.

x=(double)i/j;
Reason:As you have not mentioned i have given the answer in java ,In java you can do it using casting ,as i have done above.
Please do ask in case of any doubt.
