Untitled
Anonymous
plain_text
11/13/2022 1:24 PM
280 B
25
Indexable
#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;
}Editor is loading...