#include <cmath>
#include <iostream>
#include <iomanip>

#define _USE_MATH_DEFINES
#include <math.h>

using namespace std;

int main() {
	
	const int N = 100;
	double x[N] = {};
	double y[N] = {};
	double x_min = 0;
	double x_max = 2*M_PI;
	double x_delta = (x_max - x_min) / (N - 1); // changed by Th69

	for (int i = 0; i < N; i++) {
		x[i] = x_min + i * x_delta; // changed by Th69
		y[i] = (sin((x[i])) * sin((x[i])));

		cout << fixed;
		cout << setprecision(2);
		cout << i;
		cout << " Xwerte: " << x[i] << endl;
		cout << "Ywerte: " << y[i] << endl;
		//cout << "test: " << x[i + 1] - x[i]<< endl; <= hierfuer immernoch keine Lösung
	}
}