Ответы
Ответ дал:
0
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int x;
cout << "x=";
cin >> x;
cout << "y=" << (x > 0 ? sqrt(x) : x*x);
return 0;
}
#include <math.h>
using namespace std;
int main() {
int x;
cout << "x=";
cin >> x;
cout << "y=" << (x > 0 ? sqrt(x) : x*x);
return 0;
}
Вас заинтересует
2 года назад
2 года назад
7 лет назад
7 лет назад
10 лет назад
10 лет назад