Repciu

Untitled

Oct 23rd, 2018
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. int main(int argc, char** argv) {
  6.     for (int j = 0; j < 20; j++){
  7.     if ((j ==  0) || (j == 19))
  8.         for (int i = 0; i  < 20; i++){
  9.         cout << "*" ;
  10.  
  11. }
  12. else {
  13.         for (int i = 0; i  < 20; i++){
  14.        if((i == 0) || (i == 19)) {
  15.        
  16.         cout << "*" ;
  17. }
  18. else {
  19.     cout <<" ";
  20. }
  21. }
  22. }
  23. cout << endl;
  24. }
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment