Java Master Crux Course
Java DS
Doubts
crx-pattern-17
saijaltripathy_e79096f8f1ec20e3
(Saijal Tripathy)
May 11, 2023, 3:20pm
#1
Screenshot (29)
1366×768 118 KB
Please explain why error is showing for int cst = 1.
saijaltripathy_e79096f8f1ec20e3
(Saijal Tripathy)
May 11, 2023, 3:30pm
#2
Screenshot (30)
1366×768 117 KB
But when I use for loop, the code works perfectly fine. So why error is showing when I am using while loop?