In C++, dividing an int by another int will result in integer division. Integer division truncates the decimal part and only returns the whole number quotient. If you need a more precise result with decimal places, you can convert one or both operands to double before performing the division.
Let see in the Video for details.
How to Compile and Run C++ Program:
• How to Compile and Run C++ Program in VS C...