1. First, define two variables. Take the definition of integer variables A and B as an example. Assign values to 3 and 5 respectively.
2. Then define a variable as the representation of the result, taking the variable c as an example.
3. Then when calculating c = a/b, if it is not processed at this time, the result is 0. Because 3/5=0.6 will be automatically regarded as 0 here.
4. Take forced type conversion for the result of A/B. The format is to add (the type to be converted) before the result that needs format conversion. That is, the type to be converted is written in parentheses.
Finally, run the program again to output the correct result.