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

Why we use conio h in c?

1301


What is hash table in c?

1077


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15888


How many header files are in c?

1065


What is the difference between mpi and openmp?

1357


How to draw the flowchart for structure programs?

9389


What is a far pointer in c?

1098


What are lookup tables in c?

1033


Explain the difference between the local variable and global variable in c?

1133


Explain how does free() know explain how much memory to release?

1137


Can we access array using pointer in c language?

1127


Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.

1320


What is the difference between exit() and _exit() function in c?

1130


What is the difference between procedural and functional programming?

1133


Stimulate calculator using Switch-case-default statement for two numbers

3036