fork download
  1.  
  2.  
  3. #include <stdio.h>
  4.  
  5. int main() {
  6. {
  7. int a,b,c,d;
  8.  
  9. d=0;
  10. scanf("%d",&a);
  11. scanf("%d",&b);
  12. scanf("%d",&c);
  13.  
  14. for(; a<=b; a++) {
  15.  
  16. a=a++;
  17. if(c%a==0)
  18. d=d+1;
  19. }
  20. printf("%d",d);
  21.  
  22.  
  23. }
  24. return 0;
  25. }
  26.  
Success #stdin #stdout 0.01s 5312KB
stdin
3
8
15
stdout
2