[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: I have a problem help me



Is it just me, or is this entire thread a bit off topic for this list?

Charles

-----Original Message-----
> From: Luca Mannocci <mannocci.luca@libero.it>
> Subject: Re: I have a problem help me
> Date: Sat, 12 Nov 2005 14:56:34 +0100
> To: debian-java@lists.debian.org
> Old-Return-Path: <mannocci.luca@libero.it>
> 
> Hello !!
> By to Italy.
> Luca Mannocci
> 
> 
> Alle 18:53, giovedì 10 novembre 2005, Avik Chatterjee ha scritto:
> > Hello,
> >        I'm avik.I have been facing a problem in a
> > typical Java program.The problem is...
> >.....
>  that'll print the following:
>      *     
>     ***    
>    *****   
>   *******  
>  ********* 
> ***********
> > I have done this but not more
>  class star
>  {
>    public static void main(String args[])
>   {
> 
> 
>       int b = 10;
>       int d = b/2;
>      
>      for(int i=0;i<=d;i++) {
>         int ma=d-i;
>         int mb=d+i;
>       for(int j=0;j<=b;j++) 
>       {
>         if( j >= ma && j <= mb)     
>          System.out.print("*");
>         else
>          System.out.print(" ");
>                       
>       }//End 2^ loop
>      System.out.println();
>      
>      }//End 1^ loop
> 
>  }
> > please help me.
> >
> >
> >
> > __________________________________________________________
> > Enjoy this Diwali with Y! India Click here
> > http://in.promos.yahoo.com/fabmall/index.html
> 

-- 
That "pink toothbrush"
Is a curse
But that pink razor's
A darn sight worse
Use
Burma-Shave
http://burma-shave.org/jingles/1934/that_pink_toothbrush

Attachment: signature.asc
Description: Digital signature


Reply to: