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

Why did colonial naval victories inspire colonists during the american revolution?
Multicellular organisms reproduce by binary fission. true or false
A bag contains six white beads and four black beads. You pick out a bead at random,record it's color and put the bead back in the bag. You repeat this process 3
Is the capital of brunei and is grounded in Islamic tradition
Ways in which the sugar daddyor mamma phenomenon could lead to hiv infections
How did God punish the Jewish people for disobedience during the Exodus?
As a result of the industrial revolution there was an increase in the
need help please help me!!!!
Piramida triunghiulara regulata, muchia laterala de 20 cm si apotema de 16 cm. Aflați aria totală!!! vă rooog, imi trebuie azi!!!!
Austria-Hungary’s takeover of Bosnia in 1908 was an example of how tensions increased when