• Post Reply Bookmark Topic Watch Topic
  • New Topic

Pattern Drawing  RSS feed

 
ken john
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do anyone have idea how to print the following pattern with Scanner and System.in fcn?


Input N: 4
*
***
* * *
* * *

Input N: 2
*
***

Input N: 0

Please use code as simple as possible. thanks a lot
 
Mohamed Sanaulla
Bartender
Posts: 3185
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like you have a lot of homework questions. Please DoYourOwnHomework.

Just providing you with the code will not help you to learn, so our aim is to help you learn and that is only when you try to put in some effort to solve the problems.

And Welcome to JavaRanch.
 
Campbell Ritchie
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome again
you should show us what you have got so far, either code or pseudo-code, then we can see what we think of it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!