Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int lines;
  8.  
  9. cin >> lines;
  10.  
  11. for(int i = 0; i <= lines - 1; i++)
  12. {
  13. int times;
  14.  
  15. cin >> times;
  16.  
  17. cout << "B";
  18.  
  19. for(int j = 1; j <= times; j++)
  20. {
  21. cout << "I";
  22. }
  23.  
  24. cout << "G B";
  25.  
  26. for(int j = 1; j <= times; j++)
  27. {
  28. cout << "O";
  29. }
  30.  
  31. cout << "M";
  32.  
  33. for(int j = 1; j <= times; j++)
  34. {
  35. cout << "!";
  36. }
  37.  
  38. cout << endl;
  39. }
  40.  
  41. return 0;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement