Advertisement
JOHNYTHEWINNER

char from string

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