// class 3 demo 2 #include #include using namespace std; int main() { int num1 = 9; int num2 = 2; double num3 = 0.0; int salary = 999999999999999999; // overflow double radius = 1.00000000000000000077; // underflow num3 = num1 / num2; // integer division num3 = num1 / double (num2); // type casting the variable num1 and num2 is promoted cout << num3 << endl; cout << salary << endl; // overflow cout << 1 - radius << endl; // underflow return 0; }// end of main