static decimal choiceNumber;
static decimal addition = Addition();
static decimal subtraction = Subtraction();
static decimal multiplication = Multiplication();
static decimal division = Division();
static void Main(string[] args)
Console.WriteLine("(1. Сложение), (2. Вычитание), (3. Умножение), (4. Деление)");
InputForMultiplication();
static void InputForAddition()
Console.WriteLine("Введите первую числу.");
Console.WriteLine("a = ");
a = Convert.ToDecimal(Console.ReadLine());
Console.WriteLine("Введите вторую числу.");
Console.WriteLine("b = ");
b = Convert.ToDecimal(Console.ReadLine());
static void InputForSubtraction()
Console.WriteLine("Введите первую числу.");
Console.WriteLine("a = ");
a = Convert.ToDecimal(Console.ReadLine());
Console.WriteLine("Введите вторую числу.");
Console.WriteLine("b = ");
b = Convert.ToDecimal(Console.ReadLine());
static void InputForMultiplication()
Console.WriteLine("Введите первую числу.");
Console.WriteLine("a = ");
a = Convert.ToDecimal(Console.ReadLine());
Console.WriteLine("Введите вторую числу.");
Console.WriteLine("b = ");
b = Convert.ToDecimal(Console.ReadLine());
static void InputForDivision()
Console.WriteLine("Введите первую числу.");
Console.WriteLine("a = ");
a = Convert.ToDecimal(Console.ReadLine());
Console.WriteLine("Введите вторую числу.");
Console.WriteLine("b = ");
b = Convert.ToDecimal(Console.ReadLine());
Console.WriteLine("Введите меньшую или большую числу.");
else if (choiceNumber == 2)
else if (choiceNumber == 3)
else if (choiceNumber == 4)
Console.WriteLine("Введите только число.");