Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
big boom!
#include <iostream> using namespace std; int ilosc,x; char i='I'; char o='O'; char w='!'; int main() { cin>>ilosc; for(int j=0;j<ilosc;j++) { cin>>x; cout<<"B"; for(int a=0;a<x;a++) { cout<<i; } cout<<"G B"; for(int a=0;a<x;a++) { cout<<o; } cout<<"M"; for(int a=0;a<x;a++) { cout<<w; } cout<<endl; } }
run
|
edit
|
history
|
help
0
Scope guarding
LIS
combine c++ string with dynamically allocated c array of chars through overloaded add operator
simple calculator
on_off
CPP - Arrays - Ex.2 - Solution
Making pyramid using nested loop 1/2
std::string(pid_t)
Minimum number of jumps DP
prepend