1 278
Repost from CODE WITH VIRUS
public int myFunction(int a,int b){
int c=0;
for(int i=a;i<=b;i++){
String d=String.valueOf(i);
int n=d.length();
int x=d.charAt(0)-'0';
int y=d.charAt(n-1)-'0';
if(x==y){
c+=1;
}
}
return c;
}
Baby Lions Integer
Java code
✅Share @coding_solution
07 лист 2022, 22:09

