Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int a=0;
  6. int b=0;
  7. scanf("%d %d", &a, &b);
  8. if(a<1 || a>10000){
  9. return 0;
  10. }
  11. if(b<1 || b>10000){
  12. return 0;
  13. }
  14. for(a; a<b;a++){
  15. if(a % 7 ==2){
  16. printf("%d\n", a);
  17. }
  18. if(a % 7 ==3){
  19. printf("%d\n", a);
  20. }
  21. }
  22.  
  23.  
  24.  
  25.  
  26.  
  27. return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement