Самостоятельная работа 2 №2

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> #include <cmath> using namespace std; int main() { //////////////////////////////// Задание №2 Вариант 1 ////////////////////////////////////////// setlocale(LC_ALL,""); int a, b, c; double ans; cout << "Введите a, b, c:" << endl; cin >> a >> b >> c; if (a == 0) { cout << "Решений нет" << endl; } else { ans = (((b + sqrt(pow(b, 2) + 4 * a * c))) / 2 * a) - pow(a, 3) * c + pow(b, -2); cout << "Ответ:" << ans << endl; } return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines