fork(3) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int d;
  5. long int a,b;
  6. int main()
  7. {
  8. cin >> d;
  9. for (int i=1;i<=d;i++)
  10. {
  11. cin >> a >> b;
  12. for (int j=a+1;j<b;j++)
  13. {
  14. if (j%2==0) {cout<<j<<' ';}
  15. }
  16. cout << endl;
  17. }
  18. return 0;
  19. }
Success #stdin #stdout 0s 15232KB
stdin
2
3 9
4 9
stdout
4 6 8 
6 8