Skip to content
This repository was archived by the owner on Jul 13, 2025. It is now read-only.

Commit 5fd8118

Browse files
Readme Updated
1 parent 8d8eda2 commit 5fd8118

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

README.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -336,28 +336,29 @@ Algorithms show these three features:
336336
This is the if… then… else… form of the decision. This means that if the preposition is true then execute process1, else, or otherwise, execute process2.
337337

338338
3. **Repetition (also known as iteration or looping):** repeat and while. repeat loop, while loop, if… then go to ... loop. The repeat loop is used to iterate or repeat a process or sequence of processes until some condition becomes true. It has the general form:
339-
*Syntax:*
340339

341-
Process1 Fill water in kettle
342-
Process2 until kettle is full
343-
ProcessN
344-
Until proposition
345-
While preposition while kettle is not full
346-
347-
Begin
348-
fill water in kettle
349-
Process1
350-
Process2
351-
……………
352-
ProcessN
353-
end
340+
*Syntax:*
354341

355-
If … then goto … is:
356-
Process1 Fill some water in kettle
357-
Process2 if kettle not full then goto 1
358-
……………
359-
ProcessN
360-
If proposition then goto Process1
342+
Process1 Fill water in kettle
343+
Process2 until kettle is full
344+
ProcessN
345+
Until proposition
346+
While preposition while kettle is not full
347+
348+
Begin
349+
fill water in kettle
350+
Process1
351+
Process2
352+
……………
353+
ProcessN
354+
end
355+
356+
If … then goto … is:
357+
Process1 Fill some water in kettle
358+
Process2 if kettle not full then goto 1
359+
……………
360+
ProcessN
361+
If proposition then goto Process1
361362

362363
**Constant and Variable:** Constant is a fixed value that can’t be changed. On the other hand, the variable is a container for a value that may vary during the execution of the program. For example, in the tea-making algorithm, the cup and kettle are constant whether the water level, water temperature and quantity of tea leaves are variable.
363364

0 commit comments

Comments
 (0)