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

Calculate the percentage increase of an item that cost R59.99 in 2020 and R 65.99 in 2021​
I need help with number 9 please show work how to get the answer.
Wind is formed when hot air rises and cool air sinks. This process is called ___________.
A math class consists of 25 students, 14 female and 11 male. Two students are selected at random to participate in a probability experiment. Compute the probabi
Find the area of the polygon.
State the common factor of the terms in the polynomial 5x^2 + 30x^2 - 10x. Then factor the polynomial
Help me fast 3) Consider the function f(x) = x2 a) Sketch the graph of f(x) = x2 below. b) Sketch the graphs of the following two functions on the same set of
Help please A)Sentence 1 B)Sentence 2 C)Sentence3 D)Sentence 4
A man is flying a kite on an eighty foot string. The kite has an angle of elevation measuring fifty five degrees from the ground. What is the horizontal distanc
What is the circumstance?