#include <iostream> #include <cmath> int main() { double angle_degrees = 30.0; double angle_radians = angle_degrees * M_PI / 180.0; double result = std::sin(angle_radians); std::cout << "sin(" << angle_degrees << ") = " << result << std::endl; return 0; }