Skip to content

Commit 10dd717

Browse files
author
Svetlin Nakov
committed
Updates Content/Chapter-6-1-nested-loops/drawing-more-complex-figures/sunglasses/sunglasses.md
Auto commit by GitBook Editor
1 parent 2ff54d8 commit 10dd717

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: Content/Chapter-6-1-nested-loops/drawing-more-complex-figures/sunglasses/sunglasses.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ When drawing the upper and lower rows we need to print **`2 * n`** stars, **`n`*
2424

2525
## Printing the Middle Rows
2626

27-
When drawing **the middle** part we need to **check** if the row is **`(n-1) / 2 - 1`**, because in the examples we can see that in **this row** we need to print **pipes** instead of white spaces.
27+
When drawing **the middle** part, we need to **check** if the row is **`(n-1) / 2 - 1`**, because in the examples we can see that in **this row** we need to print **pipes** instead of white spaces.
2828

2929
![](/assets/chapter-6-images/08.Sunglasses-02.png)
3030

Diff for: Content/Chapter-6-1-nested-loops/nested-loops/example-rhombus-of-stars.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Watch this video lesson to learn how to print a rhombus of stars on the console
1616

1717
## Hints and Guidelines
1818

19-
To solve this problem we need to mentally **divide** **the rhombus** into **two parts****upper** one, which **also** includes the middle row, and **lower** one. For **the printing** of each part we will use **two** separate loops, as we leave the reader to decide the dependency between **`n`** and the variables of the loops. For the first loop we can use the following guidelines:
19+
To solve this problem, we need to mentally **divide** **the rhombus** into **two parts****upper** one, which **also** includes the middle row, and **lower** one. For **the printing** of each part we will use **two** separate loops, as we leave the reader to decide the dependency between **`n`** and the variables of the loops. For the first loop we can use the following guidelines:
2020

2121
* We print **`n-row`** white spaces.
2222
* We print **`*`**.

0 commit comments

Comments
 (0)