Advertisement
dxvmxnd

Untitled

Sep 16th, 2024 (edited)
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int n;
  5. double sum = 0.0;
  6. printf("Введите значение n: ");
  7. scanf("%d", &n);
  8.  
  9. for (int k = 1; k <= n; k++) {
  10. sum += 1.0 / (k * k * k * k * k);
  11. }
  12.  
  13. printf("Сумма: %.10f\n", sum);
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement