For loop is used when number of iteration is known. eg :
``` for (int i=0;i<n;i++){
}
```
Incase if while loop , it runs till the condition is true. eg:
while(n>0){
Followers