fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int a, b;
  7. cin >> a >> b;
  8.  
  9. for (int i = b; i >= a; i--) {
  10. cout << i << " ";
  11. }
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5516KB
stdin
10 5
stdout
Standard output is empty