Untitled
#include <iostream> using namespace std; int main() { int a; int b; int c = 0; int d = 0; int e = 0; int count = 0; cin >> a >> b; for (int i = a; i < b; i++) { c = i; if (i > 99) { c = i / 10; } d = c % 10; e = (c / 10) % 10; if (d == e) { count++; } } cout << count; }