Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- //using System.Collections.Generic;
- //using System.Linq;
- //using System.Text;
- namespace _3._2_задача
- {
- class Program
- {
- static void Main()
- {
- Console.WriteLine("Введите три числа ");
- int n = int.Parse(Console.ReadLine());
- int m = int.Parse(Console.ReadLine());
- int l = int.Parse(Console.ReadLine());
- double z = 1, f = 0, u = 0;
- for (int i = 1; i <= n; i++)
- {
- for (int j = 1; j <= m; j++)
- z = z * (((2 * j) + i) / (j + 9));
- u = u + z + (((i * i) + 1) / (i + 2));
- z = 1;
- }
- for (int k = 1; k <= l; k++)
- f = f + (((k * k) + 10) / (k + 2));
- Console.WriteLine(u / f);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement