var a = PromptInt32("Введите первое число:");
var b = PromptInt32("Введите первое число:");
Console.WriteLine($"Сумма: {sum}");
Console.WriteLine($"Разность: {difference}");
Console.WriteLine($"Произведение: {product}");
Console.WriteLine($"Частное: {quotient}; Остаток: {remainder}");
static int PromptInt32(string prompt)
Console.WriteLine(prompt);
var input = Console.ReadLine() ?? throw new InvalidOperationException("Не удалось прочитать из консоли");
if (int.TryParse(input, out var num))
throw new InvalidOperationException("Ввели не число");