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 / prasenjit roy

void DrawStar(int Count)
{
int i,j;
for ( i = 1; i<=Count; i++ )
{
for ( j = i; j<Count ; j++ )
printf(" ");
for ( j = 1; j<=i; j++ )
printf("* ");
printf("\n");
}

}

int main(int argc, char* argv[])
{
DrawStar(3);
return 0;
}

Is This Answer Correct ?    40 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you establish a has-a relationship?

1116


Define the operators that can be used with a pointer.

1066


Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

1013


Why do we need c++?

1064


Write a Program to find the largest of 4 no using macros.

1083


How to declare an array of pointers to integer?

1153


Is recursion allowed in inline functions?

1091


Define vptr.

1039


What is the most powerful coding language?

1068


What is a storage class?

1284


Why do we use classes in programming?

1044


Is c++ the hardest language?

992


Will this c++ program execute or not?

1104


Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

1111


What is the difference between prefix and postfix versions of operator++()?

1087