| 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" );
}
}
} |