Elnar Gurbanov
Ученик
(104)
1 год назад
using System;
class Program
{
static void Main()
{
int num = Convert.ToInt32(Console.ReadLine());
string str = num.ToString();
int x = Convert.ToInt32(str[0].ToString());
int y = Convert.ToInt32(str[1].ToString());
int z = Convert.ToInt32(str[2].ToString());
int w = ConvertToInt32(str[3].ToString());
if(x + y == z + w)
{
Console.WriteLine("true");
}
else
{
Console.WriteLine("false");
}
}
}