I am trying to join together strings and variables as part of formatting the output of my code. For example how do I print the line "5 trees" where the number 5 is a variable n that could be changing. I've tried the following, which doesn't work:
n=5;
Print[n <> "trees"]
Any idea on how to get that to print as "5 trees"? Thanks!
Print[n, " trees"]and take a lookStringFormorTemplatesfriends. – Kuba Apr 02 '15 at 19:55