Thread
:
Programming Challenges?
View Single Post
15-08-2009, 08:28
#
36
Mr_love_monkey
Inactive
Join Date: Jun 2003
Location: London way
Age: 49
Services: Sarcasm
Posts: 8,376
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
View Public Profile
Find More Posts by Mr_love_monkey