Поделитесь своими знаниями, ответьте на вопрос:
С++ Можете проверить написанную программу вычисления выражения: #include #include using namespace std; int main() { float x, L; setlocale(0, ""); cout > x; L = 1, 51*(pow(cos(x), 2))+ 2*(pow(cos(x), 3)); cout << endl << "L = "<< L < return 0; }
Правильная программы выглядит так:
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
float x, L;
setlocale(0, "");
cin >> x;
L = 1, 51 * cos(pow(x, 2)) + 2 * pow(x, 3);
cout << endl << "L = " << L;
return 0;
}