Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit19764350ccb78f5fb38da156c2eb66691800b641 (patch)
Author
 Angel Dimitriev <achi_d@abv.bg>
2021-03-24 17:23:40 +0200
Committer
 GitHub <noreply@github.com>
2021-03-24 17:23:40 +0200
Filesec253b4c8d1dfd45f63ee3fa649a3d9e5941182b
Introduction_to_programming_FMI-19764350ccb78f5fb38da156c2eb66691800b641.tar
Introduction_to_programming_FMI-19764350ccb78f5fb38da156c2eb66691800b641.tar.gz
Introduction_to_programming_FMI-19764350ccb78f5fb38da156c2eb66691800b641.zip
Parentb0db55a8d311c6f5ae0562a436a26941ce9ecab5 (diff)
Update README.md
1 files changed, 9 insertions, 6 deletions
-rw-r--r--Sem. 03/README.md15
diff --git a/Sem. 03/README.md b/Sem. 03/README.md
index 8c2401f..f7a6386 100644
--- a/Sem. 03/README.md
+++ b/Sem. 03/README.md
@@ -37,9 +37,10 @@ while (<Булево условие>)
### Цикъл do- while
```c++
-**do**
+do
{
-<Тяло на цикъла>
+ <Тяло на цикъла>
+
}while (<Булево условие>);
```
Изпълнението работи така:
@@ -54,13 +55,13 @@ while (<Булево условие>)
### От for към while.
```c++
-// for-loop
+// for loop
for(int i = 0; i < 10; i++)
{
<Тяло>
}
-// For loop converted to while loop
+// for loop converted to while loop
int i = 0; //Инициализация
while(i < 10)
{
@@ -91,13 +92,15 @@ for(; *str != '\0'; ++str)
// do-while loop
do
{
-<Тяло>
+ <Тяло>
+
} while (<Условие>);
+
// do-while loop converted to while loop
<Тяло>
while(<Условие>)
{
-<Тяло>
+ <Тяло>
}
```