Convert the following for() loop into while():
for(i=5;i<10;i++)
{
System.out.println(i*2);
}
Answers
Answered by
0
Answer:
check the do loop here.
Explanation:
/* do loop execution */
i=5
do {
printf("value of i:", i*2);
i = i + 1;
}while( i < 10 );
Answered by
1
Question:-
Convert the following for loop into while loop.
Answer:-
This is the converted code snippet.
int i=5;
while(i<10)
{
System.out.println(i*2);
i++;
}
Similar questions