SHARE
TWEET

Untitled

a guest Sep 15th, 2019 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace ConsoleApp2
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int j = -19;
  10.             int kol_vo = 0;
  11.             int sr_aref = 0;
  12.             for (int i = 3;  i >= j ; i--)
  13.             {
  14.                 kol_vo++;
  15.                 sr_aref += i;
  16.             }
  17.             Console.WriteLine($"Среднее арефмитическое чисел от 3 до -19 равно {sr_aref/kol_vo}");
  18.         }
  19.     }
  20. }
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