Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
205 B
0
Indexable
Never
#include <iostream>
#include <cmath>
using namespace std;
int main() {
	int a, b, c;
	cin >> a >> b;
	c = 0;
	for (int i = a; i < b+1; i++){
		if (i % 10 == i / 10 % 10) c += 1;
	}
	cout << c;
}