#include
using namespace std;
int main()
{
int a, b;
cout << "Enter numerator: ";
cin >> a;
cout << "Enter denominator: ";
cin >> b;
if(b)
cout << "Result: " << a / b << '\n';
else
cout << "Cannot divide by zero.\n";
return 0;
}
Enter numerator: 2
Enter denominator: 4
Result: 0