Title Printing A Right Triangle Star Pattern
Catalog Type SLCItem
Persistent ID https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=PYTHON&set=py_star_patterns&ch=py_stars_2
Platform Name PCEX
Features
Description An inverted right triangle star pattern of N rows contains N-i+1 asterisks in the i-th row. Construct a program that receives the number of rows in the inverted right triangle star pattern and prints that triangle. For example, when the number of rows in the inverted right triangle star pattern is 5, the program prints the following output:\n*****\n****\n***\n**\n*
Keywords for loop, nested loops
Author Kamil Akhuseyinoglu
Institution University of Pittsburgh
Iframe URL https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=PYTHON&set=py_star_patterns&ch=py_stars_2
Protocol PITT, HTML
Protocol URL
License MIT
Programming Language Python
Natural Language en

Preview