#include <iostream>
#include <math.h>
#define _USE_MATH_DEFINES
int main(){
double a,b,c = 1;
std::cout << "A:"<< std::endl;
std::cin >> a ;
std::cout << "B:"<< std::endl;
std::cin >> b;
std::cout << "C:"<< std::endl;
std::cin >> c;
double x = 2 * std::log(a) - 1 / b / c + std::tan(M_PI * b * c);
double y = std::cos(0.387 * a) + std::sqrt(std::abs(a + b));
std::cout << "x = " << x << "\n" << "y = "<< y << std::endl;
std::cin >> a;
return 0;
}
Компилятор MinGW
#include <iostream>
#include <math.h>
#define _USE_MATH_DEFINES
int main(){
double a,b,c = 1;
std::cout << "A:"<< std::endl;
std::cin >> a ;
std::cout << "B:"<< std::endl;
std::cin >> b;
std::cout << "C:"<< std::endl;
std::cin >> c;
double x = 2 * std::log(a) - 1 / b / c + std::tan(M_PI * b * c);
double y = std::cos(0.387 * a) + std::sqrt(std::abs(a + b));
std::cout << "x = " << x << "\n" << "y = "<< y << std::endl;
std::cin >> a;
return 0;
}
Компилятор MinGW