fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int i,n;
  5. scanf("%d",&n);
  6. printf("整数>",n);
  7. for(i=1;i<=n;i++){
  8. if(n%i==0)
  9. printf("%d\n",i);
  10. }
  11. // your code goes here
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5408KB
stdin
10
stdout
整数>1
2
5
10