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 the difference between c & c++?

1030


What are formatting flags in ios class?

1220


What are the advantages of prototyping?

1016


What is a friend function in c++?

1522


What will happen if a pointer is deleted twice?

1143


Explain function overloading and operator overloading.

1033


How we can differentiate between a pre and post increment operators during overloading?

1061


How do you flush std cout?

1051


what is scupper?

2336


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

1003


What character terminates all character array strings a) b) . c) END

1225


what are function pointers?

998


Which programming language's unsatisfactory performance led to the discovery of c++?

1285


What is flush c++?

948


Evaluate !(1&&1||1&&0) a) Error b) False c) True

1167