Untitled

mail@pastecode.io avatar
unknown
plain_text
6 months ago
220 B
0
Indexable
Never
#include <iostream>

using namespace std;

int main()
{
    int a, b,i,c=0;
    cin >> a >> b;
    for (i=a; i < b; i++)
    {
        string g = to_string(i);
        if(g[0]==g[1]) c++;
    }
    cout << c << endl;
}