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

#include<iostream.h>
#include<conio.h>
void main()
{
int i,j;
clrscr();
for(i=1;i<=4;i++)
{
for(j=1;j<=i;j++)
{
cout<<"*";
}
cout<<"\n";
}
getch();
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Declare a class vehicle and make it an abstract data type.

970


What happens if a pointer is deleted twice?

1277


What is iterator c++?

995


How will you call C functions from C ++ and vice-versa?

1147


Why we use #include conio h in c++?

1055


Explain the concept of dynamic allocation of memory?

1102


Can you explicitly call a destructor on a local variable?

1030


What new()is different from malloc()?

1113


Is facebook written in c++?

1001


What is the rule of three?

1004


Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

3015


What is the difference between a reference and a pointer?

1122


Does c++ vector allocate memory?

1016


Is c++ an integer?

1041


What is the difference between a type-specific template friend class and a general template friend class?

986