how to use for loop as while loop code example
Example 1: while loop in python
# while loop runs till the condition becomes false
number = 0
while number > 10: # prints number till 10
print(number)
number += 1
Example 2: whiel loop in C
while (testExpression)
{
// statements inside the body of the loop
}