99 Bottles to fall....how many loops to call? This simple challenge was posed as a programming question..... If there are 99 bottles on a wall and one by one they have to be removed how many loops are required? Sample code .... int number = 99 While (number > 1) { number -=1; Console.Writeline(number.ToString() + ‘ bottles are left’); } '   The answer : No. Change to (number >=0) This will iterate through all items.
The mark of the man who thinks...sometimes
Poetry, Chess, Programming, Philosophy, Philanthropy etc.
Twitter Handle @petrushkagoogol
External Spaces
https://themindspace.quora.com/?ch=10&oid=2086271&share=396067ef&srid=XrZim&target_type=tribe