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