Untitled

Anonymous
plain_text
11/09/2023 4:50 PM
296 B
12
Indexable
#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;
}

Editor is loading...