fork(1) download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int a,b,c,d,e=0 ;
  5. scanf("%d",&a);
  6. scanf("%d",&b);
  7. scanf("%d",&c);
  8. for ( d=a ; d<=b ; d++ )
  9. {
  10. if (c%d==0)
  11. e=e+1;
  12. }
  13. printf("%d",e);
  14. return 0;
  15. }
Success #stdin #stdout 3.17s 5276KB
stdin
Standard input is empty
stdout
1