Advertisement
Spocoman

05. Character Sequence

Sep 6th, 2023
844
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.     string str;
  8.     getline(cin,str);
  9.  
  10.     for (int i = 0; i < str.length(); i++) {
  11.         cout << str[i] << endl;
  12.     }
  13.  
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement