Build a Profile String
Easyjava
Read a name, an age and a city, combine them into a single String variable, and print it.
Input: three lines — name, age (a whole number), city.
Output: one line: <name>, <age>, <city>
Example 1
Input
Aditi 21 Pune
Output
Aditi, 21, Pune
- 1 <= age <= 120
- name and city fit on one line each
Hint 1
String profile = name + ", " + age + ", " + city;
Hint 2
The int age is automatically converted to text inside the concatenation.
Read the three lines, converting only the age to an int. Concatenate them into one profile variable with ", " between the parts, then print that variable.