View Single Post
Old 15-08-2009, 08:28   #36
Mr_love_monkey
Inactive
 
Mr_love_monkey's Avatar
 
Join Date: Jun 2003
Location: London way
Age: 49
Services: Sarcasm
Posts: 8,376
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Re: Programming Challenges?

My java version of the 3&5 divisor in one line (ignoring all the usual boilerplate java
Spoiler: 

for (int i=0;i<=100;System.out.print(++i%3 == 0 && i%5 ==0 ? (i+" is a multiple of 3 and 5\n") : i%5 == 0 ? (i+" is a multiple of 5\n") : i%3 == 0 ? (i+" is a multiple of 3\n") : ""));
Mr_love_monkey is offline   Reply With Quote