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 / amit

void main()
{
int i,j;
for(i=1;i<=4;i++)
{
for(j=1;j<=1;j++)
cout<<"*"
cout<<endl;

}
getch();
}

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between Abstraction and encapsulation in C++?

1072


Which bit wise operator is suitable for turning off a particular bit in a number?

1051


Can you please explain the difference between using macro and inline functions?

993


What does count ++ do in c++?

1155


How do pointers work?

1129


What is using namespace std in c++?

1086


What are the various operations performed on stack?

1034


What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required

929


What do you mean by inheritance in c++? Explain its types.

1061


What is boyce codd normal form in c++?

1101


What is a class template in c++?

1001


What is stl containers in c++?

989


What are the benefits of c++?

981


Do class method definitions?

983


what does the following statement mean? int (*a)[4]

1028