Advertisement
Spocoman

01. Rectangle of 10 x 10 Stars

Sep 13th, 2023
696
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.    
  7.     for (int i = 0; i < 10; i++) {
  8.         for (int j = 0; j < 10; j++) {
  9.             cout << '*';
  10.         }
  11.         cout << endl;
  12.     }
  13.     return 0;
  14. }
  15.  
  16. Или тарикатската:)
  17.  
  18. #include <iostream>
  19.  
  20. using namespace std;
  21.  
  22. int main() {
  23.  
  24.     for (int i = 0; i < 10; i++) {
  25.         cout << string(10, '*') << endl;
  26.     }
  27.     return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement