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

Why is polymorphism useful?

1105


Is c++ a software?

1242


If I is an integer variable, which is faster ++i or i++?

1129


Difference between struct and class in terms of access modifier.

1228


Which software is best for programming?

1210


What is the use of volatile variable?

1158


What is the last index number in an array of 100 characters a) 100 b) 99 c) 101

1219


What are vectors used for in c++?

1138


What is while loops?

1097


What is c++ flowchart?

1455


What are proxy objects in c++?

1233


Is swift faster than go?

1136


What are the various oops concepts in c++?

1084


What is the arrow operator in c++?

1065


What is the real purpose of class – to export data?

1164