Re: I have a problem help me

2005-11-12 Thread Luca Mannocci
Alle 19:50, giovedì 10 novembre 2005, Vardan Gevorgyan ha scritto:
> On Thursday 10 November 2005 09:53 pm, Avik Chatterjee wrote:
> > ***
>
> public class Starts {
> public static void main(String[] args) {
> printStarts(7);
> }
>
> public static void printStarts(int count) {
> int startsCount = 1;
> int spaceCount = count/2;
// if count < 2 
if(count < 2)
count = 2;
// or exit();
>
> while(startsCount <= count) {
> for(int i = 0; i < spaceCount; i++)
> System.out.print(" ");
> for(int p = 1; p <= startsCount; p++)
> System.out.print("*");
> System.out.println();
> startsCount += 2;
> spaceCount--;
> }
> }
> }



Re: I have a problem help me

2005-11-12 Thread Luca Mannocci
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



Re: I have a problem help me

2005-11-12 Thread Charles Fry
Is it just me, or is this entire thread a bit off topic for this list?

Charles

-Original Message-
> From: Luca Mannocci <[EMAIL PROTECTED]>
> 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: <[EMAIL PROTECTED]>
> 
> 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


signature.asc
Description: Digital signature


Re: I have a problem help me

2005-11-12 Thread David N. Welton
Charles Fry wrote:
> Is it just me, or is this entire thread a bit off topic for this list?

Yeah, it brings to mind answers like this:

http://www.uwasa.fi/~ts/http/homework.html



-- 
David N. Welton
- http://www.dedasys.com/davidw/

Linux, Open Source Consulting
- http://www.dedasys.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]