fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. /*for(int i=10; i>=0; i--)
  7. {
  8. cout << i << ' ';
  9. i--;
  10. }*/
  11. int i=10;
  12. while(i>=0)
  13. {
  14. cout << i << ' ';
  15. i--;
  16. i--;
  17. }
  18. return 0;
  19. }
Success #stdin #stdout 0s 15224KB
stdin
Standard input is empty
stdout
10 8 6 4 2 0