#include <stdio.h>
int main()
{
int X,Y,i,t=0;
scanf("%d %d",&X,&Y);
if(X>Y)
{
for(i=Y;i<=X;i++)
{
if(i%13!=0)
{
t=t+i;
}
}
}
else if(Y>X)
{
for(i=X;i<=Y;i++)
{
if(i%13!=0)
{
t=t+i;
}
}
}
printf("%d
",t);
return 0;
}
Add your comment