← Back to Printing
Question 75
A Row Of Dashes
A Row Of Dashes
Print one line of output made of a dash repeated as many times as the declared width, by multiplying a one-character string by the integer rather than typing the dashes out. Input: none; the value is fixed in the code.
Expected Output:
------------= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
PrintingOperators
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.