using System;
using static System.Console;
namespace ConsoleApp9
{
class Program
static void Main(string[] args)
double a, b, c, v, x, y;
Write("Input a: ");
a= double.Parse(ReadLine());
Write("Input b: ");
b = double.Parse(ReadLine());
Write("Input c: ");
c = double.Parse(ReadLine());
Write("Input x: ");
x = double.Parse(ReadLine());
Write("Input y: ");
y = double.Parse(ReadLine());
if (x < 3 && y < 0)
v = ((a + b + c) / 2) * Math.Min(x, Math.Min(y, (x + y) / (x - y)));
else if (x > 0 && y > 1)
v = Math.Max(x * x, y * y * y);
else
v = y * (a + b + c);
WriteLine("v=" + v.ToString());
ReadKey();
}
using System;
using static System.Console;
namespace ConsoleApp9
{
class Program
{
static void Main(string[] args)
{
double a, b, c, v, x, y;
Write("Input a: ");
a= double.Parse(ReadLine());
Write("Input b: ");
b = double.Parse(ReadLine());
Write("Input c: ");
c = double.Parse(ReadLine());
Write("Input x: ");
x = double.Parse(ReadLine());
Write("Input y: ");
y = double.Parse(ReadLine());
if (x < 3 && y < 0)
v = ((a + b + c) / 2) * Math.Min(x, Math.Min(y, (x + y) / (x - y)));
else if (x > 0 && y > 1)
v = Math.Max(x * x, y * y * y);
else
v = y * (a + b + c);
WriteLine("v=" + v.ToString());
ReadKey();
}
}
}