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++ programming using for loop:
*
* *
* * *
* * * *

Answer Posted / ashutosh garg

for(i=1 i<=5; i++){
for(j=1;j<=i;j++){
cout("*");
}//inner-for
cout("\n");
}//outer-for

Is This Answer Correct ?    5 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is endl?

1077


What is the benefit of encapsulation?

1018


What is iterator c++?

927


What are manipulators used for?

1037


Refer to a name of class or function that is defined within a namespace?

1048


When is the destructor called?

978


How would you use qsort() function to sort an array of structures?

1064


If you want to share several functions or variables in several files maitaining the consistency how would you share it?

929


What is a hash function c++?

1022


What is a character in c++?

996


How a new element can be added or pushed in a stack?

961


How much is c++ certification?

994


If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3

1318


Write about a nested class and mention its use?

1046


What is flush () in c++?

1035