subject

Assume the availability of a function named printstars that can be passed a non-negative integer n and print a line of asterisks. write a function 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 2 asterisks, and then a line of 3 asterisks, and so on and finally a line of n asterisks. for example, if the function received 5 it would print: * * * * * * * * * * * * * * * the function must not use a loop of any kind (for, while, do-while) to accomplish its job. the function should invoke printstars to accomplish the task of printing a single line.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:10
My has been slow anyone else’s ?
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
The place where the extended axis of the earth would touch the celestial sphere is called the celestial
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Anetwork security application that prevents access between a private and trusted network and other untrusted networks
Answers: 1
question
Computers and Technology, 23.06.2019 21:20
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
You know the right answer?
Assume the availability of a function named printstars that can be passed a non-negative integer n a...
Questions
question
Biology, 23.03.2021 02:30
question
Mathematics, 23.03.2021 02:30
question
Mathematics, 23.03.2021 02:30
question
Mathematics, 23.03.2021 02:30
Questions on the website: 13722359