A. Triangle Square exercise
1. Print triangles, method one, regular expressions
650) this.width=650; "src=" Https://s3.51cto.com/oss/201711/21/ea1ad50480c4e888094441dee06b962f.png "style=" float: none; "Title=" screenshot from 2017-11-21 21-34-44.png "alt=" Ea1ad50480c4e888094441dee06b962f.png "/>
Method two, loop nesting
I control line
J Control Printing symbols
650) this.width=650; "src=" Https://s3.51cto.com/oss/201711/21/e08401143190fdb2eb60e1ef084e1528.png "style=" float: none; "Title=" screenshot from 2017-11-21 21-35-01.png "alt=" E08401143190fdb2eb60e1ef084e1528.png "/>
2. Reverse the Print triangle
I control line
J Control Printing symbols
650) this.width=650; "src=" Https://s3.51cto.com/oss/201711/21/9fbf16bc45e1da22114e12485eb3fea5.png "style=" float: none; "Title=" screenshot from 2017-11-21 21-35-17.png "alt=" 9fbf16bc45e1da22114e12485eb3fea5.png "/>
3. Printing a positive triangle
I control line
J Control Printing the Space
H Control of printed symbols
650) this.width=650; "src=" Https://s3.51cto.com/oss/201711/21/2a120ea1b7811b1f2e1b7dc86315aa16.png "style=" float: none; "Title=" screenshot from 2017-11-21 21-48-34.png "alt=" 2a120ea1b7811b1f2e1b7dc86315aa16.png "/>
3. Print a square
I control line
J Control Printing the symbol
650) this.width=650; "src=" Https://s3.51cto.com/oss/201711/21/0ce8d4cee744ab7b2d0fa386a01f8763.png "style=" float: none; "Title=" screenshot from 2017-11-21 21-54-29.png "alt=" 0ce8d4cee744ab7b2d0fa386a01f8763.png "/>
Shell scripting exercises for Linux