Untitled
unknown
plain_text
2 years ago
305 B
8
Indexable
#include <iostream>
using namespace std;
int main()
{
int a, b, c, d;
cin >> a >> b;
int count = 0;
for (int i = a; i <= b; ++i) {
c = i / 10;
c /= 10;
d = i % 10;
if (c == d) {
count++;
}
}
cout << count;
}
Editor is loading...