using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
<span> class Program</span>
<span> {</span>
<span> static void Main(string[]
args)</span>
<span> {</span>
<span> //Задана последовательность
из n вещественных чисел. определить сколько среди них меньших k, больших k, равных
k.</span>
<span> Console.WriteLine("Введи k");</span>
<span> double
k = double.Parse(Console.ReadLine());</span>
<span> Console.WriteLine("Введи n");</span>
<span> double
n = double.Parse(Console.ReadLine());</span>
<span> Console.WriteLine("Введи числа");</span>
<span> double
a = 0.0, n_min = 0.0, n_rav = 0.0, n_max = 0.0;</span>
<span> for
(int i = 0; i < n; i++)</span>
<span> {</span>
<span> a = double.Parse(Console.ReadLine());</span>
<span> if
(a < k)</span>
<span> n_min++;</span>
<span> else</span>
<span> {</span>
<span> if
(a == k)</span>
<span> n_rav++;</span>
<span> else</span>
<span> n_max++;</span>
<span> }</span>
<span> }</span>
<span> Console.WriteLine("Меньших k - " + n_min + ", равных - " + n_rav + ", больших - " + n_max);</span>
<span> Console.ReadKey();</span>
<span> }</span>
<span> }</span>
}
<span> </span>