Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.84 KB | None | 0 0
  1. #include <string>
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6.     char kv = 34;
  7.     string arr[] = {
  8.     "    ",
  9.     "#include <string>",
  10.     "#include <iostream>",
  11.     "using namespace std;",
  12.     "int main()",
  13.     "{",
  14.     "    char kv = 34;",
  15.     "    string arr[] = {",
  16.     "    };",
  17.     "    for(int i = 1; i < 8; i++)",
  18.     "        cout << arr[i] << endl;",
  19.     "    for(int i = 0; i < 17; i++)",
  20.     "        cout << arr[0] + kv + arr[i] + kv + ',' << endl;",
  21.     "    for(int i = 8; i < 17; i++)",
  22.     "        cout << arr[i] << endl;",
  23.     "   return 0;",
  24.     "}",
  25.     };
  26.     for(int i = 1; i < 8; i++)
  27.         cout << arr[i] << endl;
  28.     for(int i = 0; i < 17; i++)
  29.         cout << arr[0] + kv + arr[i] + kv + ',' << endl;
  30.     for(int i = 8; i < 17; i++)
  31.         cout << arr[i] << endl;
  32.     return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement