Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
294 B
3
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[g.length()-1] == g[g.length()-2])
        {
            c++;cout << g << endl;
        }
    }
    cout << c << endl;
}