fork download
  1. #include<iostream>
  2. int main(){
  3. int i {5};
  4. int j{5};
  5. while(i>=1){
  6. while(j>=1)
  7. {
  8. std::cout << j<<' ';
  9. --j;
  10. }
  11. --j;
  12. --i;
  13. std::cout<<'\n';
  14. }
  15.  
  16. return 0;
  17.  
  18. }
Success #stdin #stdout 0.01s 5288KB
stdin
45
stdout
5 4 3 2 1