宙斯达达 • 10个月前
int main() {
int n, c = 0, i, a[15] = {4, 7, 44, 47, 74, 77, 44, 447, 474, 477, 744, 747, 774, 777};
scanf("%d", &n);
for (int i = 0; i < 13; i++) {
if (n % a[i] == 0) {
c++;
printf("YES");
break;
}
}
if (c == 0) {
printf("NO");
}
return 0;
}
评论:
请先登录,才能进行评论