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

a farmer has 1235 trees to be planted on a rectangular parcel of land. if there are 24 trees planted in each row and each row must be completed before it is pla
A livestock pen is built in the shape of a rectangle that is twice as long as it is wide. The perimeter is 48 feet. If the material used to build the pen is $1.
How do spermatogenesis and oogenesis differ in terms of the number of gametes they produce?
What does balanced and unbalanced forces have to do with newtons laws of motion
what is the exponential notation of this 90.000.000 ?
which social scientists are best Known for studying the physical artifacts of a culture ?
I have a Triangle and I need to find the side BC?
What are the advantages and disadvantages of vo2 max
write an counter example for the statement: all square roots are rational numbers
A social worker earns $760 gross pay.  If he is married and claims 1 dependent, his state tax rate is 7%, and FICA is 7.65%, what is his net pay?