A program that read any angle θ and display sec(θ) in Cpp.

#include<stdio.h>
#include<conio.h>
#include<iostream.h>
#include<math.h>

void main()
{
    int angle;
    float v;
    clrscr();
    cout<<"Enter any angle = ";
    cin>>angle;

    if(angle==90)
     cout<<"\nSec(90) = Undefined";
    else
    {
        v=1/(cos(angle*M_PI/180));
        cout<<"\nSec("<<angle<<") = "<<v;

    }
    getch();
}


////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........