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 difference between main and void main?

1214


Differentiate between Macro and ordinary definition.

1383


Explain about the constants which help in debugging?

1379


What is nested structure?

1043


What is the difference between constant pointer and constant variable?

1224


Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

1286


What is the difference between %d and %i?

1100


Explain enumerated types in c language?

1052


What is a class c rental property?

1100


Explain modulus operator.

1057


What is an expression?

1059


What are the applications of c language?

1080


What is the data segment that is followed by c?

1092


What is the difference between class and object in c?

1178


What is atoi and atof in c?

1088