Write a C++ program to get the following output. 1 12 123 1234 12345​

Answers

Answer 1

#include"stdafx.h"

#include<iostream>

usingnamespace std;

int main()

{

for(int i=1; i<=5; i++)

{

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

{

cout<<j ;

}

cout<<endl;

}

system("pause");

return  0;

}


Related Questions

Identify three architectural structures, natural or man made, that have withstood the test of time. describe the geometric shapes that they represent or contain.

Answers

The three architectural structures, natural or man made, that have withstood the test of time. describe the geometric shapes that they represent or contain are statues.

How are geometric shapes utilized in architecture?

Architects use geometry to take a look at and divide areas in addition to draft specified construction plans. Builders and engineers depend upon geometric concepts to create systems safely. Designers practice geometry (in conjunction with color and scale) to make the aesthetically appealing areas inside. Applying geometry in the layout is unavoidable.

Man-Made systems can consist of seawalls, breakwaters, harbor walls, pontoons and piers, to say a few. These may be crafted from a whole lot of substances now no longer constrained to wood, concrete, or metal, in addition to herbal rock that has been installed vicinity as a sea defence.

Read more avout the architectural :

https://brainly.com/question/9760486

#SPJ1

4.6. What is the maximum peak output voltage and current if the supply voltages are changed to +15 V and -15 V.​

Answers

The maximum peak output voltage and current if the supply voltages are changed to +15 V and --1V will be 15V and 0.1A.

How to calculate the current?

From the information given, the supply voltages are +15V and -15V. The maximum peak output voltage will be 15V.

The maximum peak current will be:

= 15/150

= 0.1A

In conclusion, the maximum peak output voltage and current will be 15V and 0.1A.

Learn more about current on:

brainly.com/question/24858512

#SPJ1

Why does the us import oil? because it does not produce any oil at all because it needs higher quality oil than it produces because it has exported too much oil to nearby countries because it is cheaper to import oil than to produce it

Answers

US import oil because it is cheaper to import oil than to produce it

What is importation?

Importation is a way of bringing in goods and services from neighbouring country into your country.

Countries import because it helps them to supply high cost and scarce resources to its market with products from other countries at a very cheap rate.

Hence we can conclude that US import oil because it is cheaper to import oil than to produce it.

Learn more on importation here: https://brainly.com/question/24473707

#SPJ2

Answer:

because it is cheaper to import oil than to produce it

Explanation:

d on edge2023

Find the differential and evaluate for the given x and dx: y=sin2xx,x=π,dx=0.25

Answers

By applying the concepts of differential and derivative, the differential for y = (1/x) · sin 2x and evaluated at x = π and dx = 0.25 is equal to 1/2π.

How to determine the differential of a one-variable function

Differentials represent the instantaneous change of a variable. As the given function has only one variable, the differential can be found by using ordinary derivatives. It follows:

dy = y'(x) · dx     (1)

If we know that y = (1/x) · sin 2x, x = π and dx = 0.25, then the differential to be evaluated is:

[tex]y' = -\frac{1}{x^{2}}\cdot \sin 2x + \frac{2}{x}\cdot \cos 2x[/tex]

[tex]y' = \frac{2\cdot x \cdot \cos 2x - \sin 2x}{x^{2}}[/tex]

[tex]dy = \left(\frac{2\cdot x \cdot \cos 2x - \sin 2x}{x^{2}} \right)\cdot dx[/tex]

[tex]dy = \left(\frac{2\pi \cdot \cos 2\pi -\sin 2\pi}{\pi^{2}} \right)\cdot (0.25)[/tex]

[tex]dy = \frac{1}{2\pi}[/tex]

By applying the concepts of differential and derivative, the differential for y = (1/x) · sin 2x and evaluated at x = π and dx = 0.25 is equal to 1/2π.

To learn more on differentials: https://brainly.com/question/24062595

#SPJ1

Consider a cup on a dinning table half filled with water.
State 5 similarities and differences between the fluids that are contained in the cup.

Answers

Answer:

color, shape container, type, amount, temperature

Explanation:

Other Questions
the diagram shows a right angled triangle. 9cm 15cm x degrees. Find the size of angle x. Give your answer correct to 1 decimal place. Avogadros number is the number of particles in one mole of a pure substance, true or false? When considering local issues, which point of view is best?Both human needs and environmental protection should be considered.Human needs must always come before environmental protection.Either human needs or environmental protection should be considered, depending upon the situation.Environmental protection must always come before human needs. 27CA54BBased on the diagram, which expresses all possiblelengths of segment AB?O AB = 25O 27 OAB = 85O AB< 27 or AB > 81 Simplify the expression (2x^2y)3 The formula for final velocity given acceleration and time is Vf=Vi+atRewrite the formula for solve Vi Which is the equation of an ellipse with directrices at y = 2 and foci at (0, 1) and (0, 1)? x squared over 4 plus y squared over 1 equals 1 x squared over 1 plus y squared over 2 equals 1 x squared over 1 minus y squared over 4 equals 1 x squared over 1 minus y squared over 2 equals 1 Justina..........a lot of instances to support her claim answer please From reading "The Raven and the First Men: The Beginnings of the Haida, the reader can tell that the Haida people value family due to the actions of Find the value of x.6148021x = [ ? ]3x-12 a sticker shaped like a rectangle has an area of 56 square centimeters. it has a width of 7 centimeters. Which is a private, not-for-profit organization that assesses the quality of managed care plans in the United States and releases the data to the public for consideration when selecting a managed care plan 1.In AXYZ, |XZ| = 13 cm, XY = 12 cm andZXYZ = 90. Find YZ if the area of thetriangle is 30 cm. Which of the following is true about email communication Expand: In (4a)^3help please what statement best describes the greek city-states what is the importance of test documentation? Companies create a division of labor among employees in order to: 0 a. allow each employee to perform one task at a high level. b. gain access to more human and physical capital. c. reduce the opportunity cost for hiring new employees. o d. make it easier to shift employees between different jobs. Which lists only abiotic factors in this environment?grass, tree, rock, soilbird, turtle, grass, treesun, water, grass, soilwater, rock, soil, sun Solve the following inequality algebraically:-2 less-than x/3 + 1 less than 5a.Negative 9 greater-than x greater-than 12b.Negative 9 less-than x less-than 12c.Negative 2 less-than x less-than 5d.Negative 2 greater-than x greater-than 5