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...

program to print this triangle
*
* *
* * *

Answer Posted / saravana kumar

void main()
{
int i , j , k ;
for(i = 0 ; i < 3 ; i++)
{
for (k = 2 ; k >= i ; k--)
{
printf (" ") ;
}
for(j = 0 ; j<= i ; j++)
{
printf ("* " , i , j) ;
}
printf ("\n") ;
}

Is This Answer Correct ?    7 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is object file? How can you access object file?

1217


write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

2700


How do you flush std cout?

1113


What is the type of this pointer in c++?

1076


What is the fastest c++ compiler?

1118


Is there structure in c++?

1039


How is modularity introduced in C++?

1223


Is it possible to pass an object of the same class in place of object reference to the copy constructor?

1061


Can a Structure contain a Pointer to itself?

1153


Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

1572


Difference between pass by value and pass by reference?

1164


Define what is constructor?

1075


Why do you use the namespace feature?

1104


What is the standard template library (stl)?

1802


What is the need of a destructor? Explain with the help of an example.

1035