S006-WA.cc
286 Bytes
#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main()
{
float angle;
while(1)
{
cin >> angle;
if(cin.eof())
{
return 0;
}
cout << fixed << setprecision(6) << sin(angle*M_PI/180) << " " << cos(angle*M_PI/180) << endl;
}
return 0;
}