12345678910
#include <iostream> #include <cmath> using namespace std; int main() { double a; cout << "Enter an angle (in radians): "; cin >> a; cout << "sin(" << a << ")=" << sin(a) << '\n'; }
Enter an angle (in radians): 0.5236 sin(0.5236)=0.500001