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

Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

1018


What is a volatile variable in c++?

1393


What is c++ and its uses?

1171


What is null pointer and void pointer and what is their use?

1060


What are the manipulators in c++?

999


You run a shell on unix system. How would you tell which shell are you running?

1134


What is the difference between map and hashmap in c++?

1059


What is the use of pointer in c++ with example?

1000


Who made c++?

1033


What is a storage class used in c++?

1044


What is c++ virtual inheritance?

1092


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

1040


What is setiosflags c++?

923


Explain unexpected() function?

1060


Write about the role of c++ in the tradeoff of safety vs. Usability?

1028