i = 0 ke case ke increment hoga uske baad nahi hoga kyonki i-- ki vajah se next iteration ke liye i = -1 hoga and loop execute nahi hoga to count increase nahi hoga. Count 1 hi rahne wala hai.
Mujhe lagta hai itna kafi hai samjhane ke liye.
Remember one thing first the condition is checked then the body of the loop is executed (if condition holds true) then atlast after coming out of the body the the updation (increment or decrement) takes place
Loop is control statment, which repeats its execution if condition is true
So program will run for only for i=0, however i--, which is a decrement operator, and now i become -1 so condition didn't satisfy then loop stop execution and went to next statment(which is displaying count )