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

what are 3 facts about the hydrosphere?
Is 85 prime or composite
If you know that 8x300=2400 how can you find 8x320
what is the value of 4x+9 if x=3?
PLZ! HELP!!  1. Mrs. Randall was my history teacher last year.                                  A. direct object
Rolls are being prepared to go to grocery stores. Divide 72 rolls into 2 groups so the ratio is 3 to 5.
whats x-y=-3 and whats 2x+y =12
how can you write 310,763,163 in word form
Sue wrote a double fact. It has a sum less than 10 and greater than 4. The addends are each less than 5. What fact might she have written?
Miss Bird can make 8 sculptures in 6 months.How many months will it take if she makes 12 sculptures?