arevish / Astrologer-s-star

Pattern printer in star and hash form

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Astrologer's Stars forthebadge

we have to print a pattern similar to that of a right-angle triangle, such as:

*
**
***
****

You have to follow certain instructions, which are as follows:

  • You have to take an integer type variable, and the input of the variable will define the length of the triangle.
  • You have to declare another Boolean variable.
  • When the value of Boolean is 1 i.e. True, the pattern will be printed as shown above. ☝️
  • But if the value of Boolean is 0 or false, then the triangle will be printed upside down. 👇
****
***
**
*

About

Pattern printer in star and hash form


Languages

Language:Python 100.0%