How to end of the working of while loop?
Answers
Answered by
1
you can fixed his criteria to stop loop.
Answered by
0
An example of while loop:
while(n>0)
{
c=a+b;
System.out.println("Sum= "+c)
}
it ends with a curly bracket and starts with a condition.
hope it helps :)
Similar questions