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

int main() {
	int i;
	double s, c;
	FILE *f;

	f = fopen("sincos.txt", "w");

	for (i = 0; i < 360; i++) {
		s = sin(M_PI/180*i);
		c = cos(M_PI/180*i);
		fprintf(f, "%d \t %f \t %f\n", i, s, c);
	}

	return 0;
}
