Answer:
void main(){
string name;
cout<<"Enter Name";
cin>>name;
cout<<"Greetings " ;
cout<<name;
}
Step-by-step explanation:
in main function we declared a variable called "name" .using cin we are reading the value into name and we are printing that name using cout.