fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main(void) {
  5. // your code goes here
  6. int n;
  7. printf("enter the number\n");
  8. scanf("%d",&n);
  9. for (int i=1;i<=n;i++)
  10. if (n%i==0)
  11. printf("%d ",i);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 2.88s 9424KB
stdin
100000000000
stdout
enter the number
1 2 4 8 16 32 64 128 256 512 1024 2048 593629 1187258 2374516 4749032 9498064 18996128 37992256 75984512 151969024 303938048 607876096 1215752192