Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a c++ program that gives output
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
using looping statement

Answer Posted / ramesh.bugatha78

for(int i=1;i<=5;i++)
{
for(int j=1;j<=i;j++)
cout<<j;
cout<<"\n";
}

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the scope of resolution operator.

1155


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

1378


Discussion on error handling of C++ .

1161


Is atoi safe?

1094


What is the difference between interpreters and compilers?

1269


Define the operators that can be used with a pointer.

1122


What is the type of 'this' pointer? When does it get created?

997


What is the difference between public and private data members?

1230


What is string in c++ programming?

1272


What is the basic structure of a c++ program?

1195


Define 'std'.

1223


Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

2048


How would you find out if a linked-list is a cycle or not?

1054


What is buffer and example?

1086


Why is polymorphism useful?

1108