Title Printing an Inverted Right Triangle Star Pattern
Catalog Type SLCItem
Persistent ID https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=JAVA&set=nested_for.star_patterns&ch=JStars2
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 nested loops
Author Roya Hosseini
Institution University of Pittsburgh
Iframe URL https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=JAVA&set=nested_for.star_patterns&ch=JStars2
Protocol PITT, HTML
Protocol URL
License MIT
Programming Language Java
Natural Language en

Preview