i want to get following out for a java program... how i should start my study?
output of the program:
How many stars you want to print in 1st row ? 7
*******
******
*****
****
*****
******
*******
Printable View
i want to get following out for a java program... how i should start my study?
output of the program:
How many stars you want to print in 1st row ? 7
*******
******
*****
****
*****
******
*******
Start here: The Java™ Tutorials and search the forums (for example search for "asterisk triangle") - questions such as this have been addressed quite often.
Edit:
This thread has been cross posted here:http://www.java-forums.org/new-java/40313-pattern-printing-java.html
Although cross posting is allowed, for everyone's benefit, please read:
Java Programming Forums Cross Posting Rules
The Problems With Cross Posting
See http://www.javaprogrammingforums.com...s-posting.html
is there any help from anybody?
Edited by moderator...
This should give you the desired output..........
nasim_khan, while we appreciate your contribution, we ask that you please do not hand over answers like that. I recommend you read the following (namely section 7)
Announcements - Loops & Control Statements
and
http://www.javaprogrammingforums.com...n-feeding.html