Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
How many times will times will the following loop be executed ?

For i=2 TO 14 step 3
body of loop
Next i

a) 4 b)5 c)12 d)13
Posted
Updated 28-Jan-14 22:14pm
v2

No one is going to check that by writing code in their system & tell you the answers. We most of us don't have C in our system.

So stop posting interview questions.

You should start learning. Buy a book or attend courses. If you can't afford money then check this. More than bunch of ways to learn anything using Internet.
Education Needed[^]
 
Share this answer
 
Comments
JoCodes 28-Jan-14 2:23am    
Good One. My 5
The answer is
b) 5
1) 2
2) 5
3) 8
4) 11
5) 14
 
Share this answer
 
Comments
Matt T Heffron 28-Jan-14 13:38pm    
Your forgot π and sqrt(2) ;-)
Well you should easily type this question on the google which will get you all the answers but still if you want so the Answer is a) 4 times
 
Share this answer
 
Comments
Richard MacCutchan 28-Jan-14 4:47am    
Please don't provide people's homework answers for them; it does not help them to learn anything.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900