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...

what is the code for getting the output as
*
**
***

Answer Posted / anvesh

main()
{
printf("*\n**\n***);
}
OR
main()
{
int n,i;
while(n<3)
{
i=0;
while(i<=n)
{printf("*");i++;}
printf("\n); n++;
}

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is advantage of pointer in c?

1184


Is c a great language, or what?

1109


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

2153


Difference between constant pointer and pointer to a constant.

1138


Is there a way to switch on strings?

1083


What is strcmp in c?

1118


Explain how can I make sure that my program is the only one accessing a file?

1219


What is the meaning of 2d in c?

1123


Dont ansi function prototypes render lint obsolete?

1124


How to set file pointer to beginning c?

1200


c program to compute AREA under integral

2394


Can we declare a function inside a function in c?

1035


What are void pointers in c?

995


What is the use of f in c?

976


What is volatile variable how do you declare it?

1097