fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5. int x;
  6. int y;
  7. for (x=1;x<10;x++){
  8. for (y=5; y>=x;y=y-1){
  9. cout << y;
  10.  
  11. }
  12. cout << endl;
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0s 4812KB
stdin
Standard input is empty
stdout
54321
5432
543
54
5