Home » Java » Basic Java programs using loop(Part -2)

8 years ago (Jul 29, 2016) 399 views

Basic Java programs using loop(Part -2)

Category: Java, 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  #6:

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

Sample input:
4
Sample output
1
12
123
1234

Solution:

 

 

Problem  #7:

Triangle – Right Justified
Draw right angled triangle of given height

Sample input:
4
Sample output
*
**
***
****

Solution:

Problem  #8:

Triangle – Right Justified
Draw right angled triangle of given height

Sample input:
4
Sample output
1
12
123
1234

Solution:

Problem  #9:

Rectangle Number

Sample input:
3
Sample output
Triangle – Isosceles
Draw triangle of given height

Solution:

Problem  #10:

Triangle – Isosceles
Draw triangle of given height

Sample input:
4
Sample output
1
123
12345

Solution:

To be continued……

About Post: 134

Love to play with programs!! :D

One response to “Basic Java programs using loop(Part -2)”

Leave a Reply