#include <iostream> #include <cmath> int main() { double value = 0.5; double result = acos(value); double resultInDegrees = result * 180.0 / M_PI; std::cout << "acos(" << value << ") = " << resultInDegrees << " degrees" << std::endl; return 0; }