#include<iostream>
#include<cmath>
using namespace std;
#define pi 3.14
int main()
{ float x,theta;
float sx,cx;
cout<<"ener the angle in degree"<<endl;
cin>>theta;
x=(180/pi)*theta;
sx=sin(x);
cx=cos(x);
cout<<"sine of "<<theta<<"is"<<sx;
cout<<"cosine of "<<theta<<"is"<<cx;
int i;
cin>>i;
return 0;
}
#include<cmath>
using namespace std;
#define pi 3.14
int main()
{ float x,theta;
float sx,cx;
cout<<"ener the angle in degree"<<endl;
cin>>theta;
x=(180/pi)*theta;
sx=sin(x);
cx=cos(x);
cout<<"sine of "<<theta<<"is"<<sx;
cout<<"cosine of "<<theta<<"is"<<cx;
int i;
cin>>i;
return 0;
}
No comments:
Post a Comment