This post is in response to the comment #2 in the post Creating a triangle of characters on terminal
The following script will create a blank triangle of characters on the linux terminal, but unlike the script in "" the triangle will be empty, i.e. only the outline has the characters chosen by the user and inside is left blank.
Save the script as blank_triangle.sh and give it execute permissions
Now execute it
Thus we can see that the script is able to draw the blank triangle of any character user wants and any number of rows (limited by the number of rows in one terminal screen )
The following script will create a blank triangle of characters on the linux terminal, but unlike the script in "" the triangle will be empty, i.e. only the outline has the characters chosen by the user and inside is left blank.
Save the script as blank_triangle.sh and give it execute permissions
Now execute it
Thus we can see that the script is able to draw the blank triangle of any character user wants and any number of rows (limited by the number of rows in one terminal screen )
No comments:
Post a Comment