Skip to content

Commit a436b34

Browse files
committed
Chapter 7.2 - Grammarly + Upper Letter Titles
1 parent 4a7c0f9 commit a436b34

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

chapter-07-complex-loops-exam-problems.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ We already learned how to execute **a block of commands more than once** using a
1111

1212
## Exam Problems
1313

14-
Let's start work on solving the following practical exam problems.
14+
Let's start work on solving the following practice exam problems.
1515

1616

17-
## Problem: Dumb Passwords Generator
17+
## Problem: Stupid Password Generator
1818

1919
Write a program that enters two integers **n** and **l** and generates in alphabetical order all possible **"dumb" passwords** that consist of the following **5 characters**:
2020
- Character 1: digit from **1** to **n**.
@@ -45,7 +45,7 @@ Print on the console **all "dumb" passwords in alphabetical order**, separated b
4545

4646
We can split the solution of the problem into 3 parts:
4747

48-
* **Reading the input** – in the current problem, this includes reading two numbers **`n`** and **`l`** and converting them to numbers.
48+
* **Reading the input** – in the current problem, this includes reading two numbers **`n`** and **`l`**, and converting them to numbers.
4949
* **Processing the input data** – using nested loops to iterate through every possible symbol for each of the five password symbols.
5050
* **Printing the output** – printing every "dumb" password that meets the requirements.
5151

@@ -220,7 +220,7 @@ Write a program that reads from the console 1 integer within the range [**100
220220
- If the number is divisible by **3** without remainder, **subtract** from it **its second digit**
221221
- If none of the above-mentioned conditions is valid, **add** to it **its third digit**.
222222

223-
Print on the console **N lines**, and each line has **M numbers**, that are the result of the above actions.
223+
Print on the console **N lines** and each line has **M numbers**, that are the result of the above actions.
224224
- N = sum of the first and second digits of the number.
225225
- M = sum of the first and third digits of the number.
226226

0 commit comments

Comments
 (0)