Now playing on dirty.radio: Loading...

  Dirty Forums > underworld.

Post Reply
 
Thread Tools Display Modes
  #1  
Old 12-09-2009, 12:02 PM
aNt
underworldlive | tomato
 
Join Date: Jul 2005
Location: london
Posts: 160
Re: Underworldlive version 3.0 thread
Code:
public static void main(String[] args) {
    System.out.print("splash me a number: ");
    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    int x, y, c = 0;
    for( x = 2; x < n ; x++ ) {
          if( x % 2 != 0 || x == 2 ) {
               for( y = 2; y x / 2 ) {
                  System.out.println( x );
                  c++;
               }
          }
     }
     System.out.println( "\n total: " + c );
}
Is the slacker way i'd do it
  #2  
Old 12-09-2009, 02:40 PM
stimpee
Administrator
 
Join Date: Jun 2005
Location: Netherlands
Posts: 3,833
Re: Underworldlive version 3.0 thread
Quote:
Originally Posted by aNt
Is the slacker way i'd do it
i'd use google.
__________________
UW0764 || Professor: "Underworld have never failed to disappoint me" || Yannick changed my avatar picture.
Post Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:31 AM.


Powered by vBulletin®
Copyright ©2000 - 2025, vBulletin Solutions, Inc.