Advertisement
dxvmxnd

Untitled

Sep 16th, 2024
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. double sum = 0.0;
  5.  
  6. for (int i = 1; i < 101; i++) {
  7. sum += 1.0 / (i * i);
  8. }
  9.  
  10. printf("Сумма: %.6f\n", sum);
  11. return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement