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

How should a contructor handle a failure?

1192


Why is c++ called oops?

1177


Why c++ is called oop?

1122


What is an iterator class in c++?

1139


Why do we need c++?

1058


Eplain extern keyword?

1030


Why do we need runtime polymorphism in c++?

1026


What is an accessor in c++?

1077


What are shallow and deep copies?

1116


What is namespace & why it is used in c++?

1121


What is the oldest programming language?

1017


What are smart pointers?

2284


What sorting algorithm does c++ use?

1150


Explain the difference between realloc() and free() in c++?

1019


Write a Program to find the largest of 4 no using macros.

1081