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

Find MAXIMUM of three distinct integers using a single C statement

1023


Is array a primitive data type in c?

1010


What is pointer in c?

1149


Why we use stdio h in c?

989


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1028


What should malloc() do?

1112


What 'lex' does?

1112


How variables are declared in c?

1007


In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)

2073


Why do some versions of toupper act strangely if given an upper-case letter?

1051


formula to convert 2500mmh2o into m3/hr

951


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2337


Write a C program in Fibonacci series.

1058


What language is windows 1.0 written?

1004


What is the use of header?

1067