fork download
  1. //OrinTill Qimid CSC1 Chapter 2, P. 83, #16
  2. //**************************************************************
  3. //*
  4. // * Displaying Diamond Shape
  5. //* ____________________________________________________________
  6. //* This program is used to display a Diamon Shape Onto your Screen
  7. //*
  8. //* ____________________________________________________________
  9.  
  10. #include <iostream>
  11. using namespace std;
  12.  
  13. int main() {
  14. cout<< " *" << endl;
  15. cout<< " ***" << endl;
  16. cout<< " *****" << endl;
  17. cout<< " *******" << endl;
  18. cout<< " *****" << endl;
  19. cout<< " ***" << endl;
  20. cout<< " *" << endl;
  21. return 0;
  22. }
  23.  
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
    *
   ***
  *****
 *******
  *****
   ***
    *