Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- long long int m,n,f=1,i;
- scanf("%lld%lld",&n,&m);
- for(i=1;i<=n;i++)
- {
- f=f*i;
- }
- if(f%m==0)
- {
- printf("%lld divides %lld!\n",m,n);
- }
- else
- {
- printf("%lld does not divide %lld!\n",m,n);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement