Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- setlocale(LC_CTYPE, "Russian");
- char S[500];
- int i=0, n;
- cout << "Введите строку: ";
- cin >> S;
- cout << "С какого символа: ";
- cin >> n;
- n -= 1;
- do
- {
- if (i == n)
- {
- do
- {
- cout << S[i];
- i++;
- } while (S[i] != '\0');
- }
- i++;
- } while (S[i] != '\0');
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement