natinaeltekle
natinaeltekle natinaeltekle
  • 18-05-2021
  • Health
contestada

Write a complete program that inputs a positive integer n and then prints a

triangle of asterisks n lines high and 2n - 1 columns wide. For example, if the

input is 5 then the output should be:

*

* * *

* * * * *

* * * * * * *

* * * * * * * * *​

Respuesta :

ostohon ostohon
  • 22-05-2021

Answer:

2(5)-1=9

Explanation:

Answer Link

Otras preguntas

The persian ruler Cyrus was called "the Great" because he? a. Showed no mercy to enemies b. Thought Persian culture was superior to others c. Was a large man d.
Explain How did distribution of powers under the Articles make the national government dependent on the states?
what do leaf and a cheek have in common
How can you find 2*square root* 192?
how to round 209 to the nearest ten and hundred
Draw up an action plan to address homelessness
Marcella divided 40.8 gallons of paint among 8 characters , how much paint is in each container
SET is to DISHES as CANTEEN is to ................... Please try and help me
what happens to infrared radiation when it comes to contact wih a shiny suface
A particular plant root grows 1.5 inches per month. How many centimeters is the plant root growing per month? (1 inch = 2.54 centimeters).