>>177
int floor10(int x){
 int y = 10;
 for (;y <= x; y+=10)
  if (x - y < 10)
   return y;
  return -1; // 解なし
}
割り算を使ってないというだけだが