Advertisement
fd4geek

Untitled

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