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