Untitled
unknown
plain_text
2 years ago
369 B
7
Indexable
#include <iostream>
using namespace std;
int main()
{
int x;
cin >> x;
int a, b, c, d;
if (x!=0) {
a = x % 10; // 4 цифра
}
if (x != 0) {
b = x / 1000; // 1 цифра
}
if (x != 0) {
d = (x / 10) % 10; // 3 цифра
}
if (x != 0) {
c = (x / 100) % 10; // 2 цифра
}
while (b - a = c + d) {
cout << "YES";
}
} Editor is loading...