#include <iostream>#include <string> int main (){ std::string name; std::cout << "Please, enter your full name: "; std::getline (std::cin,name); std::cout << "Hello, " << name << "!\n"; ret…
1.C++ code, When we want to read a number whatever the type is int or double , just use cin >> Num_variable; Then, after read number, if we want to read a line of words, we have to use cin.ignore(); and next line getline(cin, String); after we read…