This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Whats the output ????

 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

for the very first time , i=0 so the case 0 : must be evaluated�right ???
the why the hell the output of this code is 3 0 4 6 3. how come the first digit in output is 3 ???



[B]Please use tags[/B]
[ November 02, 2005: Message edited by: Barry Gaunt ]
 
Steve Morrow
Ranch Hand
Posts: 657
Clojure Spring VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

[ November 02, 2005: Message edited by: Steve Morrow ]
 
Steve Morrow
Ranch Hand
Posts: 657
Clojure Spring VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, you either mistyped the output or forgot a break statement, but that code won't produce that output...
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Output is: 3 0 3 4 6 3
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic