Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.88 KB | None | 0 0
  1. using System;
  2. //using System.Collections.Generic;
  3. //using System.Linq;
  4. //using System.Text;
  5.  
  6. namespace _3._2_задача
  7. {
  8.     class Program
  9.     {
  10.         static void Main()
  11.         {
  12.             Console.WriteLine("Введите три числа ");
  13.             int n = int.Parse(Console.ReadLine());
  14.             int m = int.Parse(Console.ReadLine());
  15.             int l = int.Parse(Console.ReadLine());
  16.             double z = 1, f = 0, u = 0;
  17.             for (int i = 1; i <= n; i++)
  18.             {
  19.                 for (int j = 1; j <= m; j++)
  20.                     z = z * (((2 * j) + i) / (j + 9));
  21.                 u = u + z + (((i * i) + 1) / (i + 2));
  22.                 z = 1;
  23.             }
  24.             for (int k = 1; k <= l; k++)
  25.                 f = f + (((k * k) + 10) / (k + 2));
  26.             Console.WriteLine(u / f);
  27.             Console.ReadKey();
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement