СДЕЛАТЬ НА C#
пж пж пж​

Приложения:

Ответы

Ответ дал: orakul96
1

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace AutoIT // Это моё название проекта

                                 // Ты можешь при создании назвать его как хоч

{

   internal class Program

   {

       static void Main(string[] args)

       {

           Console.OutputEncoding = Encoding.UTF8;

           double[] a = new double[8];

           for (int i = 0; i < a.Length; i++)

           {

               a[i] = int.Parse(Console.ReadLine());

           }

           int k = 0;

           double sum = 0;

           for (int i = 0; i < a.Length; i++)

           {

               if(a[i] >= 10 && a[i] <= 50)

               {

                   k++;

                   sum += a[i];

               }

           }

           Console.WriteLine("Количество таких элементов " + k + ", и их сумма "+sum);

           Console.ReadLine();

           

       }

   }

}

Вас заинтересует