Skip to content

arevish/Astrologer-s-star

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

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. 👇
****
***
**
*

Releases

No releases published

Packages

No packages published

Languages