Advertisement
Guest User

Untitled

a guest
Feb 29th, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     string s;
  6.     getline(cin, s);
  7.     int w = s.find(" ") + 1;
  8.     int e = s.find(" ", w);
  9.     int l = e - w;
  10.     cout << s.substr(w, l);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement