class Program
{
static void Main(string[] args)
{
Console.WriteLine("Введите число a:");
int a = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Введите число b:");
int b = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Введите число c:");
int c = Convert.ToInt32(Console.ReadLine());//Вводим 3 числа
int sredAref = a + b + c / 3;//Считаем
Console.WriteLine("Среднее Арифметическое : " + sredAref);// Выводим
Console.ReadKey();
}
}
Объяснение:
Поделитесь своими знаниями, ответьте на вопрос:
p1=0,5=1/2
p2=0,25=1/4
p3=0,25=1/4
I =-(log2 1/2)/2 -(log2 1/4)/4 -(log2 1/4)/4=1/2+1/2+1/2=3/2=1,5(бит)
2)
64=2^6 ---> 6 бит
128=2^7 ---> 7 бит