题解 | #牛牛的二三七整除#
牛牛的二三七整除
https://www.nowcoder.com/practice/b2cf0b791245436f8f0591ae9f4c664f
#include <stdio.h> int main() { int a ; int b = 0; int c = 0; int arr[3] = {2,3,7}; scanf("%d",&a); for (b = 0; b < 3; b++) { if (a % arr[b] == 0) { printf("%d ",arr[b]); c++; } } if(c == 0) { printf("n"); } return 0; }