#include <iostream>
#include <iomanip>
#include <cmath>
#define M_PI 3.14159265358979323846
using namespace std;
int main()
{
double a=0.0;
cout<<"=================="<<endl;
cout<<fixed<<setprecision(1)<<a<<"\t"<<setprecision(4)<<sin(a*M_PI/180)<<"\t"<<cos(a*M_PI/180)<<endl;
a=30.0;
cout<<fixed<<setprecision(1)<<a<<"\t"<<setprecision(4)<<sin(a*M_PI/180)<<"\t"<<cos(a*M_PI/180)<<endl;
a=45.0;
cout<<fixed<<setprecision(1)<<a<<"\t"<<setprecision(4)<<sin(a*M_PI/180)<<"\t"<<cos(a*M_PI/180)<<endl;
a=60.0;
cout<<fixed<<setprecision(1)<<a<<"\t"<<setprecision(4)<<sin(a*M_PI/180)<<"\t"<<cos(a*M_PI/180)<<endl;
a=90.0;
cout<<fixed<<setprecision(1)<<a<<"\t"<<setprecision(4)<<sin(a*M_PI/180)<<"\t"<<cos(a*M_PI/180)<<endl;
cout<<"——————————";
return 0;
}
Comments
Leave a comment