20 символов, тк если 40 разделить на 2 будет 20
Точно не знаю, но мне кажется, что так:
1-г
2-а
3-в
4-б
#include <iostream>
using namespace std;
int main()
{
int a, b;
cout << "Enter the dividend and divisor: " << endl;
cin >> a >> b;
if (b == 0) {
cout << "You are mistaken. The divisor can not be zero." << endl;
cin >> b;
} else {
cout << "Result: " << (double)a / b << endl;
}
return 0;
}