Untitled
unknown
plain_text
10 months ago
294 B
3
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[g.length()-1] == g[g.length()-2]) { c++;cout << g << endl; } } cout << c << endl; }