SHARE
TWEET

Untitled

a guest Jan 21st, 2020 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace _3
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double sum, i, eps = 0.000000001, sl;
  10.             sum = 0;
  11.             i = 1;
  12.             sl = 1 / (i * i);
  13.             while (sl >= eps)
  14.             {
  15.                 sum += sl;
  16.                 i++;
  17.                 sl = 1 / (i * i);
  18.             }
  19.             Console.WriteLine("Сумма ряда = " + sum);
  20.             Console.ReadLine();
  21.         }
  22.     }
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top