But what about while loops that don't use the while-true statement?
while(condition){
do something;
}
for(;condition;){
do something;
}
See? There is absolutely no reason to use while loops.
I urge you all to stop using this redundant function and instead switch to a much simpler style of coding that only has one loop, the for loop that will always be dominant!
FOR LOOPS FOREVER!
Unless you use Python. Then you suckyou are unculturedyou should stop using python while loops are useful.
Forgo the usage of while loops
While loops have grown to become a staple ingredient in our codes. We use it for a lot of purposes.
Some Common Uses Of While Loops
It has a lot of uses.
But, we also have the for loop.
It does the exact same thing.
Allow me to demonstrate.
Output:
But this code does the exact same thing with a for loop.
But what about while loops that don't use the while-true statement?
See? There is absolutely no reason to use while loops.
I urge you all to stop using this redundant function and instead switch to a much simpler style of coding that only has one loop, the for loop that will always be dominant!
FOR LOOPS FOREVER!
Unless you use Python. Then
you suckyou are unculturedyou should stop using pythonwhile loops are useful.well i just made one too bruhh @FlaminHotValdez