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

Why cstdlib is used in c++?

1007


What are the manipulators in c++?

999


Do you know what is overriding?

1132


Can a function take variable length arguments, if yes, how?

975


Are there interfaces in c++?

962


In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?

1034


What is difference between class and function?

1051


How can we access protected and private members of a class?

1078


Is c++ vector dynamic?

1046


Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c

1250


What is fflush c++?

973


Can I have a reference as a data member of a class? If yes, then how do I initialise it?

1188


How do you find out if a linked-list has an end?

1088


How do you declare A pointer to a function which receives nothing and returns nothing

1196


Discussion on error handling of C++ .

1090