#include <iostream> using namespace std; int quotient(int number1, int number2) { if (number2 == 0) { cout << "Divisor cannot be zero" << endl; exit(0); // Terminate the program } return number1 / number2; } int main() { // Read two integers cout << "Enter two integers: "; int number1, number2; cin >> number1 >> number2; int result = quotient(number1, number2); cout << number1 << " / " << number2 << " is " << result << endl; return 0; }