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

Can member data be public?

1037


Which software is used for c++ programming?

1086


Explain the concept of dynamic allocation of memory?

1102


What is an operator in c++?

1068


What are abstract data types in c++?

986


What do you mean by late binding?

1131


What is else if syntax?

1168


What is meaning of in c++?

1218


Why is c++ is better than c?

982


What type of question are asked in GE code writing test based on c++ data structures and pointers?

3984


Write syntax to define friend functions in C++.

1080


What operator is used to access a struct through a pointer a) >> b) -> c) *

1124


Can we delete this pointer in c++?

1223


Define the operators that can be used with a pointer.

1063


What is null pointer and void pointer and what is their use?

1102