我想问下return 0放到最后一个中括号前为什么就全错了?
int main() { int n; scanf("%d",&n); for(int i=2;i<=n;++i) if(n%i==0) { printf("%d",n/i); return 0; } }