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
*******
******
*****
****
*****
******
*******
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
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
Last edited by copeg; March 10th, 2011 at 10:29 AM.
is there any help from anybody?
Edited by moderator...
This should give you the desired output..........
Last edited by copeg; July 1st, 2011 at 04:06 PM. Reason: Spoonfeed answer
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