fork(1) download
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int a = 15, b = 4, c = 6, upScale = 20;
  7.  
  8. for(int i = upScale; i > 0; --i)
  9. {
  10. cout << (i > a ? " " : "*")
  11. << (i > b ? " " : "*")
  12. << (i > c ? " " : "*")
  13. << endl;
  14. }
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
   
   
   
   
   
*  
*  
*  
*  
*  
*  
*  
*  
*  
* *
* *
***
***
***
***