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