This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
please write what is difference between these programs
In the first case, your do-loop terminates prematurely, and you have code following it that fixes it. In the second case, your do-loop terminates prematurely, and you don't have code following it that fixes it.
IMO, neither case is optimal. Maybe it would be better to fix the do-loop.
Another suggestion, instead of generating the output string backwards -- requiring the for-loop to reverse it back -- maybe it would be better to generate it in a forward direction. Meaning, instead of this...
How about this...
Joined: Aug 17, 2009
i am asking in first cast output is: 38 and in the second case output is: 8