Untitled
user_7248805
plain_text
3 years ago
299 B
3
Indexable
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int A, B, Z, V;
cin >> A >> B;
V= A % 100;
Z = 0;
while (A != B) {
if (A % 10 == (V / 10)) {
Z += 1;
A += 1;
}
else {
A += 1;
}
}
if (B % 100 == 0) {
Z += 1;
}
cout << Z;
}
Editor is loading...