Untitled

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