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

int main() {
	int i = 0;
	FILE* outfile;
	
	outfile = fopen("datenfile", "w");
	for(; i<1000; i++) fprintf(outfile, "%f %f\n", 2*M_PI*i/1000.0, sin(2*M_PI*i/1000.0));
	close(outfile); 
	return 0;
}
		

