#include
using namespace std;
double calc(double m, double n) {
if (n < 0 && m > 0) {
return m + n * n;
} else if (m <= 0 && n < 0) {<br> return m + 2 * n;
} else {
return m + 1;
}
}
int main() {
double N, M;
cout << "Введите M: "; cin >> M;
cout << "Введите N: "; cin >> N;
cout << calc(M, N);<br> return 0;
}