+ 3

Who can explain loops.?

in simple

22nd Oct 2018, 11:51 AM
Khan
Khan - avatar
7 Respostas
+ 11
In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached.  ✌️👻
22nd Oct 2018, 12:42 PM
Vishnu
Vishnu - avatar
+ 8
Loops are type of statements that keep executing until the specified condition is met.
22nd Oct 2018, 2:12 PM
blACk sh4d0w
blACk sh4d0w - avatar
+ 6
Simplest way to put it, loops are kind of like if statements, except the loop will keep executing the code until the condition evaluates to false.
22nd Oct 2018, 1:47 PM
{{username}}
{{username}} - avatar
+ 5
ok. Loop is just a structure that have a expression for avaliation While(expression/condition) for(expression/condition) do While (expression/condition) If the expression or condition inside () is true the code go inside loop executes and go back to start of the loop and get prepare to condition be checked again. In other words you just go outside loop if you expression/condition is false. Just have one exception. do-while loops always executes once. because they executes first and after the expression checks occurs. For more reference you can see this post: https://www.sololearn.com/Discuss/1554388/when-we-can-use-do-while-loop-in-c-programming-language If you have any doubt feel free to ask.
22nd Oct 2018, 12:01 PM
Anya
Anya - avatar
+ 2
loop means doing samething for many times you can custmize it by using conditions
25th Oct 2018, 10:13 AM
Md. Mehrajul Islam
Md. Mehrajul Islam - avatar
+ 1
{{username}} perfect explanation. i couldn't do so simple and better
22nd Oct 2018, 1:49 PM
Anya
Anya - avatar
+ 1
Anya ty :)
22nd Oct 2018, 1:50 PM
{{username}}
{{username}} - avatar