Why for loop is effective than while loop

Questions by j_priyaa

Showing Answers 1 - 3 of 3 Answers

dinesh

  • Jan 24th, 2007
 

for loop is very simple and it is in only one line but while loop is complex when compared to for loop

  Was this answer useful?  Yes

Guest

  • Jan 28th, 2007
 

While loop excutes the certain condition untill the given condition becomes false where as in for loop we can initialise the variable, depending upon that we can specify a condition to check on every execution.

  Was this answer useful?  Yes

santoshkapawar

  • Jan 30th, 2007
 

Because it takes single line for initialization,condition check and incremention. in While loop default statement is not possible which is in for while statement must contain conditional statement which may not required in for semicolan after whie statement is allow which is allow in for

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions