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

Is set c++?

968


Explain public, protected, private in c++?

979


What is the difference between a "copy constructor" and an "assignment operator" in C++?

1043


Which operator cannot be overloaded c++?

983


What does return 0 do in c++?

1000


Is ca high or low level language?

1039


What is c++ similar to?

1145


What is the difference between passing by reference and passing a reference?

1042


How do you compile the source code with your compiler?

1026


What are c++ files?

1082


What is a try block?

1047


Explain the difference between c++ and java.

1077


Can create new c++ operators?

984


What are structures and unions?

966


What are the classes in c++?

1074