Advertisement
pan7nikt

ramka_bez_zmiennych

Feb 18th, 2020
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int i;
  5. int j;
  6.  
  7. void ramka()
  8. {
  9.     for(i=0;i<7;i++){cout << "*";}
  10.     cout << endl;
  11.     for(i=0;i<2;i++)
  12.     {
  13.         cout << "*";
  14.         for(j=0;j<7-2;j++){cout << " ";}
  15.         cout << "*";
  16.         cout << endl;
  17.     }
  18.     for(i=0;i<7;i++){cout << "*";}
  19. }
  20.  
  21. main()
  22. {
  23.     ramka();
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement