Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Bismillah*/
- /*Subhan Allah Alhamdulillah Allahu Akber*/
- #include<stdio.h>
- int main()
- {
- long int m,n,o,p,q,ans=0,j;
- scanf("%ld%ld%ld%ld%ld",&m,&n,&o,&p,&q);
- {
- for(j=1;j<=q;j++)
- {
- if((j%m==0)||(j%n==0)||(j%o==0)||(j%p==0))
- {
- ans++;
- }
- }
- printf("%ld\n",ans);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement