Switch to full style
For C/C++ coders discussions and solutions
Post a reply

While loop

Thu Apr 09, 2009 3:43 am

Another program I can't figure out. Any help would be appreciated.

set y = 3
set x = 2
set z = 0
while x<12
z = x + y
x = y
y = z
End While
Output y



Re: While loop

Thu Apr 09, 2009 10:26 pm

thanks a lot ,

Re: While loop

Wed Apr 22, 2009 6:54 am

Whats the problem in this program what output you are getting

Re: While loop

Fri Jul 17, 2009 6:11 am

Even easier to use than the for loop is the while loop. A while loop doesn't initialize or increment any fields automatically as part of the command, it just tests a condition and executes the loop for as long as the condition remains true. simple ex:
Code:
var 0;
while (
x<10) {
document.write(x);
x++;


Re: While loop

Sun Jul 19, 2009 8:14 am

document.write(x); ????

It is C++ . haha . ? i think it is javascript .

Re: While loop

Mon Jul 20, 2009 9:14 am

Thanks a lot.I am really appreciate your programing figure.

Post a reply
  Related Posts  to : While loop
 do while loop and for loop C++ example help.     -  
 C++ While loop     -  
 Do while loop     -  
 Breaking a Loop     -  
 PIC Assembly For Loop Example     -  
 I NEED SOME HELP IN THE FOR LOOP PLZ .. IAM JUST A BEGINNER     -  
 Using include() Within a Loop     -  
 Why will my loop does not work     -  
 Need help with code for a while loop program     -  
 for statement loop indefinitely     -  

Topic Tags

C++ Loops