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 are files in c++?

1046


What does obj stand for?

1182


Which of the following is evaluated first: a) && b) || c) !

2372


Which operator cannot overload?

1055


Will rust take over c++?

1074


What's c++ used for?

1124


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

1044


What is conditions when using boolean operators?

1245


Differentiate between realloc() and free().

1064


What is the purpose of the "delete" operator?

1075


Write about an iterator class?

1096


What are references in c++?

1147


What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00

1085


Can a program run without main in c++?

1221


What is the difference between a pointer and a link in c ++?

1067