Assume the availability of a method named makeStars that can be passed a non-negative integer n and that returns a String of n asterisks. Wr

Question

Assume the availability of a method named makeStars that can be passed a non-negative integer n and that returns a String 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 n asterisks, followed by a line of n-1 asterisks, and then a line of n-2 asterisks, and so on.

in progress 0
Madelyn 2 weeks 2021-11-18T10:43:20+00:00 1 Answer 0 views 0

Answers ( )

    0
    2021-11-18T10:44:49+00:00

    Answer:b

    Step-by-step explanation:

    b

Leave an answer

45:7+7-4:2-5:5*4+35:2 =? ( )