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

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 ?    33 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can non graphic characters be used and processed in C++?

1244


Should I learn c++ c?

1101


Does c++ have arraylist?

1081


What is the basic concept of c++?

1061


What does extern mean in a function declaration in c++?

1272


Which software is best for coding?

1099


What is else syntax in c++?

1265


Is c++ a good first language to learn?

1120


Is c++ slower than c?

1104


Who calls main function?

1163


Does c++ have foreach?

1132


What are the various compound assignment operators in c++?

1029


Can a program run without main function?

1224


What's the order in which the local objects are destructed?

1309


Explain the uses oof nested class?

1193