Advertisement
damch

Broj so povekje od M deliteli

Dec 6th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int m,n,i,j,brdeliteli;
  6. scanf("%d %d",&m,&n);
  7. for(i=n+1;;i++)
  8. {
  9. brdeliteli=0;
  10. for(j=1;j<i/2;j++)
  11. {
  12. if(i%j==0)
  13. brdeliteli++;
  14. }
  15. if(brdeliteli>m){
  16. printf("%d",i);
  17. break;}
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement