System.out.println("Your name is "+name+" and you live in "+ home+" ,"+state +".");
}
Output:
If the user inputs name="Gaus",city="LosAngeles" and state="California"then the output will be "Your name is Gaus and you live in LosAngeless, California."
Explanation:
The above function is in java language which takes three argument names, state, and the city.
The name will be stored on the name variable of the string type.
The state will be stored on the state variable of string type.
The city will be stored on the city variable of the string type.
Then the Output will be displayed with the help of the print function.