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