# Generating list of labeled string [closed]

I want to generate a table that gives the following output:

output: {"x1", "x2", "x3", "x4", "x5"}


I have tried:

Table["x"*i, {i, 5}]


which gives

{"x", 2 "x", 3 "x", 4 "x", 5 "x"}


I wonder what is a correct way of doing this?

## closed as off-topic by andre314, corey979, Henrik Schumacher, chuy, JungHwan MinAug 2 '18 at 20:06

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – andre314, corey979, Henrik Schumacher, chuy, JungHwan Min
If this question can be reworded to fit the rules in the help center, please edit the question.

• In mathematica, like in other languages (or very most of them), there is a clear distinction beetween integer (i) and string ("blabla"). If you multiply a string by a integer, you don't obtain a string. Hence your question sounds extra-terrest. – andre314 Aug 2 '18 at 13:56
• A bit of an extrapolation, but also check out Indexed Variables for these things. – Musang Aug 2 '18 at 15:38
• Some related: (3165), (21109), (48315), (60680), (73135), (118658). See StringTemplate[] in addition to ToString. – Michael E2 Aug 2 '18 at 19:49
• Also related, or duplicate: 176419, 36886, and see How to print an integer with n leading zeros in Mathematica on SO. – user1066 Aug 2 '18 at 20:30

Table["x" <> ToString[i], {i, 5}]