12345678910111213141516171819202122
#include <iostream> #include <cmath> using namespace std; int main() { int r = 0; double k; for (int r = 0; r < 7; r++) { k = pow(2, r); for (int c = 0; c < k; c++) { cout << "+"; } cout << endl; } return 0; }