1.

Which elements are needed to control the loop ?​

Answer»

Answer:

Hello user !

Your question: How to control a loop ?

Answer :

1) There are two types of loop - EXIT controlled and entry controlled.

2) In a loop , you need initialization, condition and updation

3) The body of the program should be according to the syntax of the loop

4) In entry controlled loop , there are - for loop whose syntax is given below..

for (int variable; Condition; updation)

{

body of the loop i.ewhat do you need from the program

}

So , for this you MUST have appropriate condition and updation according to your REQUIREMENT . In this way , you can control a loop.

Hope it helps ❤❤



Discussion

No Comment Found