using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Global
{
class Program
static void Main(string[] args)
string first_x = Console.ReadLine();
int first_input = Convert.ToInt16(first_x);
int y = 1 - first_input;
y = y + 3 * Get_x();
y = y - 4 * Get_x();
Console.Write(y);
Console.Read();
}
static int Get_x()
string input = Console.ReadLine();
int x = Convert.ToInt16(input);
return x;
Объяснение:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Global
{
class Program
{
static void Main(string[] args)
{
string first_x = Console.ReadLine();
int first_input = Convert.ToInt16(first_x);
int y = 1 - first_input;
y = y + 3 * Get_x();
y = y - 4 * Get_x();
Console.Write(y);
Console.Read();
}
static int Get_x()
{
string input = Console.ReadLine();
int x = Convert.ToInt16(input);
return x;
}
}
}
Объяснение: