Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /******************************************************************************
- Online C++ Compiler.
- Code, Compile, Run and Debug C++ program online.
- Write your code in this editor and press "Run" button to compile and execute it.
- *******************************************************************************/
- #include <iostream>
- #include <stdio.h>
- #include <iomanip>
- #include <string.h>
- using namespace std;
- int
- main ()
- {
- const char* text[5] = { "Вася", "пошёл",
- "гулять", "в лес", "за грбами" };
- for (int i = 0; i < 5; i++)
- cout << setw((i + 1) * 4 + strlen(text[i])) << text[i] << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement