Написать на с#
вычислить среднее геометрическое трех чисел по формуле s = √abc

Ответы

Ответ дал: MaximShymchenkoM
0

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace ConsoleApp3

{

   class Program

   {

       static void Main(string[] args)

       {

           int a, b, c;

           a = Convert.ToInt32(Console.ReadLine());

           b = Convert.ToInt32(Console.ReadLine());

           c = Convert.ToInt32(Console.ReadLine());

           Console.WriteLine(Math.Sqrt(a + b + c));

           Console.Read();

       }

   }

}

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