Tag: 21228

Assume the availability of a method named printStars that can be passed a non-negative integer n and print a line of n asterisks

Assume  the availability of a method  named  printStars that can be passed a non-negative integer  n and print a line of n asterisks

LANGUAGE: JAVA CHALLENGE: Assume the availability of a method named printStars that can be passed a non-negative integer n and print a line of n asterisks. Write a method named printTriangle that receives a non-negative integer n and prints a triangle of asterisks as follows: first a line of 1 asterisk, followed by a line of […]

Read More