Answer:
// program in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variables
int age;
string lname;
cout<<"Enter your last name:";
// read last name
cin>>lname;
cout<<"Enter your age:";
// read age
cin>>age;
// print user id
cout<<"Your user id is: "<<lname<<" "<<age<<endl;
return 0;
}
Step-by-step explanation:
Read last name from user and assign it to variable "lname".Then read age from user and assign it to variable "age".After this print the user id as last name followed by age.
Output:
Enter your last name:singh
Enter your age:24
Your user id is: singh 24