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

Explain storage qualifiers in c++.

1029


Who discovered c++?

984


What are enumerations?

1051


Differentiate between C and C++.

1173


What are keywords in c++?

1046


Explain the difference between static and dynamic binding of functions?

998


Name the operators that cannot be overloaded in C++?

1001


Is python written in c or c++?

1090


What is while loops?

995


Define token in c++.

1093


What is increment operator in c++?

969


What is the use of 'this' pointer?

1206


What kind of problems can be solved by a namespace?

1012


Explain the difference between struct and class in terms of access modifier.

1130


Explain deep copy and a shallow copy?

989