Guest User

Untitled

a guest
Jun 19th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <array>
  4.  
  5. using namespace std;
  6.  
  7. string printShape(){
  8.     asterisk[] = {
  9.         " *****",
  10.         "********",
  11.         "*********",
  12.         "**********",
  13.         "***********",
  14.         "************",
  15.         "  ******",
  16.         "  ******",
  17.         "  ******"
  18.     };
  19.  
  20.     for(int i = 0; i < sizeof(asterisk); i++){
  21.         cout << asterisk[i] << endl;
  22.     }
  23. }
  24.  
  25. int main(){
  26.     printShape();
  27. }
Add Comment
Please, Sign In to add comment