Star pattern - 1

Input: The number of lines to print stars.

Output: Star pattern.



V2 - Logic: We used 2 for loops.

V1 -  Logic: We used simple fix approach of print to print 5 lines of *.

Comments

Popular posts from this blog

Maximum and minimum of three numbers