Advertisement
hadiuzzaman65

substring

Apr 13th, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.14 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     string s1;
  8.     getline(cin,s1);
  9.     cout<<s1.substr(2,5);
  10.  
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement