Advertisement
shamiul93

1133

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