Pattern Problem | Right angle Triangle



Output

Sample 1



Enter the limit:
5
*
==========
*
**
==========
*
**
***
==========
*
**
***
****
==========
*
**
***
****
*****

==========

Sample 2

Enter the limit:
10
*
==========
*
**
==========
*
**
***
==========
*
**
***
****
==========
*
**
***
****
*****
==========
*
**
***
****
*****
******
==========
*
**
***
****
*****
******
*******
==========
*
**
***
****
*****
******
*******
********
==========
*
**
***
****
*****
******
*******
********
*********
==========
*
**
***
****
*****
******
*******
********
*********
**********
==========

No comments:

Post a Comment