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

Can we access the array using a pointer in c language?

1001


Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.

4154


What is identifier in c?

969


What does c mean in basketball?

944


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

1215


What are pointers? What are stacks and queues?

1067


What is function prototype in c language?

987


Multiply an Integer Number by 2 Without Using Multiplication Operator

728


Can you think of a logic behind the game minesweeper.

2421


What is the size of enum in c?

1062


How is = symbol different from == symbol in c programming?

990


Where we use clrscr in c?

1094


What is storage class?

1019


Why is c so important?

998


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

961