fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int a, b, c, count, temp;
  6. scanf("%d,%d,%d",&a,&b,&c);
  7. count=0;
  8. if(a>b)
  9. {
  10. temp=a;
  11. a=b;
  12. b=temp;
  13. }
  14. for(a;a<=b;a++)
  15. {
  16. if(c%a==0)
  17. {
  18. count++;
  19. }
  20. }
  21. printf("求める約数の個数は%d個",count);
  22. return 0;
  23. }
  24.  
Success #stdin #stdout 0s 5316KB
stdin
948,10,3600
stdout
求める約数の個数は34個