Java Master Crux Course


Please explain why error is showing for int cst = 1.


But when I use for loop, the code works perfectly fine. So why error is showing when I am using while loop?