write the syntax for while loop.
Sanjana5428:
While loop for what??
Answers
Answered by
1
While<(condition)>
{
action block
}.
This is the syntax of while loop.
{
action block
}.
This is the syntax of while loop.
Answered by
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)*\
}
{
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
Biology,
8 months ago
CBSE BOARD XII,
1 year ago
English,
1 year ago
Science,
1 year ago
Social Sciences,
1 year ago