Answer the question
In order to leave comments, you need to log in
How to fix this error in Visual Studio / C++?
{
setlocale(LC_ALL, "ru");
double a, b, c, diagonal, diametr, radius;
cout << "Введите 3 стороны прямоугольного параллелепипеда: ";
cin >> a >> b >> c;
cout << "Введите радиус круга: ";
cin >> radius;
{
diametr = 2 * radius;
cout << "diametr-" << diametr << endl;
diagonal = sqrt(a ^ 2 + b ^ 2 + c ^ 2);// ВОТ ЗДЕСЬ У МЕНЯ ПОДЧЕРКИВАЕТ "А" И "2"
Answer the question
In order to leave comments, you need to log in
Either the pow function or raising by a*a
diagonal = sqrt((a * a) + (b * b) + (c * c));
diagonal = sqrt(pow(a, 2) + pow(b, 2) + pow(c, 2));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question