1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
stealth61 [152]
3 years ago
11

Assume that the int variables i, j and n have been declared, and n has been initialized. Write code that causes a "triangle" of

asterisks to be output to the screen, i.e., n lines should be printed out, the first consisting of a single asterisk, the second consisting of two asterisks, the third consisting of three, etc. The last line should consist of n asterisks. Thus, for example, if n has value 3, the output of your code should be (scroll down if necessary): * ** ***
Computers and Technology
1 answer:
makvit [3.9K]3 years ago
6 0

Answer:

The code that will cause the triangle of  asterisks is given by;

for (i=1; i<=n; i++){

for (j=1; j<=i; j++)

cout << "*";

cout << "\n";

}

Explanation:

You might be interested in
How would you classify the earliest historical examples of STEM discoveries provided in this lesson?
Readme [11.4K]
MATHEMATICAL DISCOVERIES
4 0
4 years ago
Read 2 more answers
Explain connectivity is productivity
Olegator [25]

Answer:

In fact, Quadir coined the phrase "connectivity is productivity" to explain the unique impact of Information Communication Technologies (ICTs), particularly mobile telephones, in improving economic efficiency.

5 0
3 years ago
What are the safety lifestyle before using computer​
masya89 [10]

make sure to drink water and take 20 second break from computer every 20 minutes

3 0
3 years ago
How can you tell that a spreadsheet was saved as a 2007 Excel file?
jek_recluse [69]
The file name will end in .exl, hope this helps
3 0
3 years ago
All of the 802. 11 standards for wireless networking support which type of communication path sharing technology?.
Tom [10]

Answer:

CSMA/CA. It stands for Carrier Sense Multiple Access/Collision Avoidance.

6 0
3 years ago
Other questions:
  • Why wont my brainly account rank up even tho i have 1193 points and 5/5 brainly trophies but it still wont rank me up to vistro
    11·2 answers
  • Which of the following values is an example of a floating point number?
    12·1 answer
  • Write the definition of a method printdottedline, which has no parameters and doesn't return anything. the method prints to stan
    5·1 answer
  • Algorithmic Complexity: what is the asymptotic complexity (Big-O) of each code section? Identify the critical section of each.\
    8·1 answer
  • B. Does “refactoring” mean that you modify the entire design iteratively? If not, what does it mean?
    7·1 answer
  • area of trapezium is 54cmsq if parallel sides are 10cm and 8cm long find the distance between the parallel sides​
    12·1 answer
  • can you follow my ikok? its that_enby_skye and my youube Cactus Face with 241 subscribe er s &amp; my twith Mx_Skye
    10·2 answers
  • Que segnifica mmmju?​
    15·1 answer
  • You have been asked to replace a cracked screen on a laptop. The replacement screen was delivered today, but it did not include
    7·1 answer
  • How does the internet works
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!