Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- int n;
- double sum = 0.0;
- printf("Введите значение n: ");
- scanf("%d", &n);
- for (int k = 1; k <= n; k++) {
- sum += 1.0 / (k * k * k * k * k);
- }
- printf("Сумма: %.10f\n", sum);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement