File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ For loop is used to iterate a set of statements based on a condition.
86
86
for variable in expression do
87
87
# code
88
88
end
89
- ````
89
+ `````
90
90
##### While:
91
91
92
92
While is also used to iterate a set of statements based on a condition. Usually while is preferred when number of iterations are not known in advance.
@@ -95,7 +95,7 @@ While is also used to iterate a set of statements based on a condition. Usually
95
95
while condition do
96
96
# code
97
97
end
98
- ` ` ` `
98
+ `````
99
99
##### Do-while:
100
100
Do-while is also used to iterate a set of statements based on a condition. It is mostly used when you need to execute the statements atleast once.
101
101
@@ -104,4 +104,4 @@ loop do
104
104
# code
105
105
break if conditional- expression
106
106
end
107
- ````
107
+ `````
You can’t perform that action at this time.
0 commit comments