fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4. int a,b;
  5. std::cin >> a >> b;
  6.  
  7. int c = b - a;
  8. int t = c >> 31;
  9.  
  10. a -= t * c;
  11. b += t * c;
  12.  
  13. c = b - a + 2;
  14. while (--c) {
  15. std::cout << b - c + 1 << std::endl;
  16. }
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0s 3472KB
stdin
10 5
stdout
5
6
7
8
9
10