• Post Reply Bookmark Topic Watch Topic
  • New Topic

please please help me with these programs  RSS feed

 
pras
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1)Print all prime numbers from first n numbers where n is user input.
2)Print following output (Pyramid shape) for n lines where n is user input:

1 2
1 2 3
1 2 3 4
1 2 3 4 5
�����.
�����.
3)Print following output(Pyramid shape) for n lines where n is user input:
1
1 3 1
1 3 5 3 1
1 3 5 7 5 3 1
�����.
�����.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Prasanna,

JavaRanch is a place for you to learn Java. We won't just give you the solution to your problems, because you will not learn a lot if we did that.

So: Try to write some code yourself first. Show us what you wrote, and explain exactly where you get stuck - then we will help you to understand how it works and get on with it.
 
krishna bulusu
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why don't you search in the google?
 
Burkhard Hassel
Ranch Hand
Posts: 1274
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not SCJP related. Moving...
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First question is being discussed here.

Second and third questions are being discussed here
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!