Great! Now you want to print a dotted line below the message for Aditya, so that you can eventually print messages for several students on the same page, and easily cut along the dotted line to separate the messages. You're just doing your part to save the planet.
You write the following code:
1 2 3 4 5 6 7 8 9 |
|
What do you use to replace [---] so that you get a row of 80
-
with no spaces in between? Your output should like like this:
1 2 |
|
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Strings can be concatenated using the + operator and repeated using the ∗ operator.That's why both '-' 80 and '----' 20 will work.