For Loop:
It is a fixed repetition loop. It will run the given number of times no matter how the body of for loop changes the values of the variables.
If you have a constant (eg: max students), you can run the For Loop for htat many times. You can change the value of the constant. Every year you can change the value of Max Students.
The counter value increases or decreases depending up on teh for looop min, max, incremented or decremented values automatically as statesd per requirement- no separate statement is made within the body of for lop.
A seperate variable is needed most time sto run a For Loop.
A For Loops can also start with a maximum value and decrease each time the body of the loop is executed.
While Loop: While loop can have various conditions and they can be joined(AND OR). The control enters the loop body only when the condition is met. If the condition is not met, the control goes to the statement following the end of the while loop body. A statement within the while loop changes the criteria and that actually moves the control out and to the statements that are following the end of while loop body.