Untitled

Anonymous
plain_text
10/19/2023 6:22 AM
364 B
28
Indexable
// четырехзначное число
#include <iostream>
using namespace std;
int main()
{
	int a;
	cin >> a;
	if (a / 1000 - a % 10 == a / 100 - a / 1000 * 10 + (a % 100 - a % 10) / 10)
	{
		cout << "yes";
	}
	else
	{
		cout << "no";
	}
	return 0;
}
Editor is loading...