Line 1: writing the procedure
Problem
Write a procedure that takes a natural number parameter N and outputs two lines of N characters onto the screen.
1. On the 4th line, add the title of the first cycle (put a limit on j).
2. On the 6th line, add the title of the second cycle (put a limit on i).
3. On the 8th line, write the body of the second loop (the operation should display one "-" character without going to the next line).
4. On the 4th line, implement the input N.
Example:
Input |
Output |
7 |
-------
------- |