Can you convert any for loop to a while loop? List the advantages of using for loops.
Yes,we can convert the for loop into while loop....
Lets look into the syntax
For loop syntax:
While Loop Syntax:
initialization;
Examples:
Advantages of using Loops
These are the following advantages of loops: