using System.Threading.Tasks;
namespace trapec
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("[Введите символ, из которого будете рисовать трапецию]");
string c = Console.ReadLine();
Console.WriteLine(" " + c + " " + c + " " + c + " " + c + "");
Console.WriteLine(" " + c + " " + c + " " + c + " " + c + " " + c + " " + c + " ");
Console.WriteLine(" " + c + " " + c + " " + c + " " + c + " " + c + " " + c + " " + c + " " + c + " ");
Console.WriteLine("[Поздравляем, вы нарисовали самую идеальную трапецию во вселенной]");
}
}
}
using System;
namespace Nomer7
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("[Введите число x]"); Console.WriteLine("[Введите число y]");
double x = double.Parse(Console.ReadLine()); double y = double.Parse(Console.ReadLine());
double result;
result = ((Math.Pow(10, 7) - x * Math.Pow(y, 3)) / (Math.Sqrt(Math.Pow(x, 2) + Math.Pow(y, 2)))); /// формула
Console.WriteLine(result);
}
}
}
Поделитесь своими знаниями, ответьте на вопрос: