Computer Science, asked by sreeja3, 1 year ago

write the syntax for while loop.


Sanjana5428: While loop for what??

Answers

Answered by sairohith
1
While<(condition)>
{
action block
}.
This is the syntax of while loop.
Answered by SurajSaraf
1
I am writing a simple form of wile loop

{
int x;    \*type of x*\
....................\*  statement value want *\
....................\* value insert into x*\
while(x<10)\* loop condition*\
    {
     .................\* loop body*\
     .................
     x=x+2;  \* loop type(increment or decrements)*\  
    }
Similar questions