Home » Featured » Basic Java programs using loop(Part -3)

1 year ago (Jul 29, 2016) 1,609 views

Basic Java programs using loop(Part -3)

Category: Featured, Java Programming, Programming Tags: , , , by

Hi everyone … I will share some java source code which will help beginner level programmer to solve basic programming problems..

All code has been solved by : Afjalur Rahman Rana

Note: firstly try to solve the problem by yourself.. then if you can’t see the solution & if you find difficulty to any code then comment below… I will try to give you proper guide :)

Problem  #11:

Triangle – Right Justified
Draw right angled triangle of given height
Sample input:

Sample input:
4
Sample output
4
34
234
1234

Solution:

 

 

Problem  #12:

Rhombus
Just draw the image of the above triangle once. And then, the opposite, once.

Sample input:
3
Sample output
*
***
*****
***
*

Solution:

Problem  #13:

Rhombus
Just draw the image of the above triangle once. And then, the opposite, once.
Sample input:

Sample input:
3
Sample output
1
123
12345
123
1

Solution:

Problem  #14:

Hollow Rectangle
Display a rectangle of given length and width.

Sample input:
4

5
Sample output
*****
*      *
*      *
*****

Solution:

Problem  #15:

Hollow Rectangle
Display a rectangle of given length and width.

Sample input:
4

5
Sample output
12345
1       5
1       5
12345

Solution:

To be continued……

About Post: 134

Love to play with programs!! :D

3 Responses to “Basic Java programs using loop(Part -3)”

  1. IT_Expert says:

    Java programmer, right?
    Keep going bro I’m with you.

  2. ALIF HASAN says:

    Rana vai TrickBD.com e kisu problem hoise.ami signup korte partasi na.plz thik koren.ami singup korbo.

Leave a Reply

You must be logged in to post a comment.