View Single Post
  #2 (permalink)  
Old 06-10-2007, 05:27 PM
Helper
Posts: n/a
class OddElements
{
public static void main( String[] a )
{
int [] t = new int[ 50 ];
for( int i =0;i<t.length; i++)
t[ i ] = i+51;

for( int i=0; i<t.length; i++)
{
if ( t[ i ] % 2 == 1)
{
System.out.print( t[ i] + " ");
}
if( i %5 == 0 )
System.out.print( "\n" );
}
}
}

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!