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

What are the basics of local (auto) objects?

1077


What is token c++?

979


What are c++ tokens?

995


What is increment operator in c++?

967


What is the last index number in an array of 100 characters a) 100 b) 99 c) 101

1090


What is stream and its types in c++?

985


How would you implement a substr() function that extracts a sub string from a given string?

991


Explain unexpected() function?

1040


What is implicit conversion/coercion in c++?

1354


Explain the pure virtual functions?

1051


How can we check whether the contents of two structure variables are same or not?

1015


Which software is used for c++ programming?

1033


Difference between pointer to constant vs. Pointer constant

1056


Define a constructor - what it is and how it might be called (2 methods)?

1061


What is the v-ptr?

1104