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 / babitha

# include <Stdio.h>
# include <conio.h>
# include <string.h>

void main()
{
int j,i,n;

scanf("%d",&n);

for (i=0;i<=n;i++)
{
for(j=0;j<i;j++)
printf("*");
printf("\n");
}

getch();

}

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

1859


What is the advantage of c?

1063


how can f be used for both float and double arguments in printf? Are not they different types?

1031


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

1090


Why is structure padding done in c?

1089


can any one tel me wt is the question pattern for NIC exam

1928


What is function and its example?

1129


Write the Program to reverse a string using pointers.

986


Are pointers really faster than arrays?

980


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

1038


What is c preprocessor mean?

1262


What is pointer and structure in c?

1101


Explain what is the best way to comment out a section of code that contains comments?

1108


Explain what is the concatenation operator?

1122


What is the difference between ++a and a++?

1163