Register now or log in to join your professional community.
a)b)c)1d)
Output : 5
4
3
2
1
Explanation: Initial value of i is 5 , the "i" value will be converted as boolean and going to check the condition with that boolean value.,as the iteration part is concerned it displays the values of "i" and decrement it's counter until i becomes 0 then loop will terminate.
Console.ReadLine will unable to read any data because the for condition check evaluate to false initially so no out put.