Following are the C++ program to print the value input value with a message.
Program Explanation:
Program:
#include <iostream>//header file
using namespace std;
int main()//main method
{
string first_name;//defining string variable
cin>>first_name;//input string value
cout<<"Hello "<<first_name<<", and welcome to console.";//print string value with message
return 0;
}
Output:
Please find the attached file.
Learn more:
brainly.com/question/5080625