posted 8 years ago
It is like while loop nested inside a do while loop .
So the nested while loop condition while(a>=2) is always true its going an endless loop . You can change it below and you can better understand
Since I am also a beginner , can anybody confirm my answer is right ?