Professional Documents
Culture Documents
Unendliche Reihe
Unendliche Reihe
h>
#include <math.h>
int main() {
int i = 0, n, power;
float sum = 0.0;
while (i <= n) {
printf("+ 1/(n^%d)", i);
sum = sum + 1.0 / pow(n, i);
i++;
}