help me for this nested for loop with users input
i dont know how to put the user's input with this..when i run this it automatically runs without asking how many asterisk..im new in java :(
int x,y;
for(x=5;x>=1;x--)
{
for(y=1;y<=1;y++)
{System.out.print("*");}
{System.out.println("");}
}
}
}
the output of this is
*****
****
***
**
*
i want the output is
Enter number:
(then it depends on the number in how many asterisk are there)
Re: help me for this nested for loop with users input
you could say what are your probs... (since like said indeed it's not the intention to just give the code, forgat that;.. :( )
and do try not to doublepost things...
grtz liluma
Re: help me for this nested for loop with users input
Please don't spoonfeed code to people.
It's not what this forum is here for.
Re: help me for this nested for loop with users input
Quote:
Originally Posted by
jakemanalaotao
int x,y;
for(x=5;x>=1;x--)
{
for(y=1;y<=1;y++)
{System.out.print("*");}
{System.out.println("");}
}
}
}
the output of this is
*****
****
***
**
*
How remarkable ...
kind regards,
Jos
Re: help me for this nested for loop with users input
Quote:
Originally Posted by
Tolls
Please don't spoonfeed code to people.
It's not what this forum is here for.
changed post.
your right... shouldn't just give him the code...