sajadadel0773
sajadadel0773 sajadadel0773
  • 16-06-2022
  • Engineering
contestada

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

Respuesta :

clashxpz
clashxpz clashxpz
  • 16-06-2022

#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;

}

Answer Link

Otras preguntas

Consider eight,eight-cubic centimeter (8 cm3) sugar cubes stacked so that they form a single 2 x 2 x 2 cube. How does the surface area of the single, large cub
If you have 3/12 of an orange,how many fourths do you have?
whom did jefferson believe government should represent? a) only the rich b) the republicans c) the loyalists d) all people
Using a value of Ksp = 1.8 x 10-2 for the reaction PbCl2 Pb+2(aq) + 2Cl -(aq). If the value of Ksp was determined to be only 1.2 x 10-2: a. Too much solid has
How do I determine three points are collinear? Using the Vector equation of a line? A (3, -8) B(5/2, 6) and C(-1/2, 90)
FANBOYS is a memory device used to help students remember what type of conjunctions?
True or False: A cross product is an equation which states that two ratios are equal.
List 3 examples of personification from the book The Tale of Two Cities.
Using the point-slope formula, what is the equation of the line that passes through the points(1,5)and(0, 0)?
Corinne has a job selling magazines. She earns $7.50 per hour plus 20% of the total amount of her sales. She also gets an allowance of $40 per week for gas. She