repl.it
C++11

No description

fork
loading
Files
  • main.cpp
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>
using namespace std ;
int main() {
  int n;
    cin >> n;
   

    for(int i = 0; i <5;i++){
      for(int m = 0 ; m < n; m++ ){
          for(int j = 0; j < 7; j++){
            if( j == 5 || j == 6) cout << "  ";
            else if(i == j || j== 0|| i == 4) cout << "* ";
            else  cout << "  ";
        }
      }
      cout <<endl;
    }
}