Advertisement
shamiul93

1132

Jan 30th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include<stdio.h>
  2. main()
  3. {
  4.     int x,y,i,tem,rem,s=0;
  5.     scanf("%d %d",&x,&y);
  6.  
  7.     if(x>y)
  8.     {
  9.         tem=x;
  10.         x=y;
  11.         y=tem;
  12.     }
  13.     for(i=x;i<=y;i++)
  14.     {
  15.         rem=i%13;
  16.         if(rem!=0)
  17.         {
  18.             s=s+i;
  19.         }
  20.     }
  21.     printf("%d\n",s);
  22.  
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement