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

About 5/7 of the earths surface is covered with water. About 88957440 km squared is land. How much in km squared of the earths surface is covered in water?
You have $5 and earn $1.75 for each roll of wrapping paper you sell. Write an equation in two variables that represents the total amount A (in dollars) you have
Give the types of quantities
Do the following setm of lengths form a right triangle 36,77, 85
a plant has two alleles for color. the red allele is recessive and is represented by q. the purple allele is dominant, and represented by p. if 59 of 100 organi
Find the y-intercept of each line defined below and compare their values
Chin noticed 1/4 of the watches he bought needed repairs. He also noticed that 1/2 of the good watches had gold bands. If 48 of the good watches had gold bands
Someone help me draft up a plan for this essay topic please! Fashion is both liberating and oppressive in the movie “The Dressmaker”. Do you agree?
After the 1" year of his $10,000 investment, Ryan had seen an increase of $600. If the investment continues to grow at the same rate (percent), what will it be
Would it take more or less generations for a larger population to acquire a fixed allele? Explain why. Plzzzz HELP