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