Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created September 16, 2021 05:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/d06e288d304dd258a36827dd7de3b655 to your computer and use it in GitHub Desktop.
Save amankharwal/d06e288d304dd258a36827dd7de3b655 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <string>
using namespace std;
int main(){
string name;
string last;
cout<<"Enter Your Full Name: ";
cin>>name;
cin.get();
getline(cin, last);
cout<<"Your First Name: "<<name<<endl;
cout<<"Your Last Name: "<<last<<endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment