// C++ program to illustrate 'cos trigonometric function' #include <iostream> #include <math.h> using namespace std; int main() { double x = 2.3; cout << "Cosine value of x = 2.3 is: " << cos(x) << endl; return 0; }