fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a ;
  6. scanf("%d ",&a);
  7. int i=1;
  8. while(i <=a){
  9. if (a%i ==0){
  10. printf("%d " ,i);
  11.  
  12. }
  13. i++;
  14. }
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0.01s 5292KB
stdin
26
stdout
1  2  13  26