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

#include<stdio.h>
main()
{
int n,i=0,j=0;
printf("Enter an intger : ");//upto n nof *'s
scanf("%d",&n);
while(j<n)
{
for(i=0;i<=j;printf("*"),i++);
printf("\n",j++);
}
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain two-dimensional array.

1026


How can you access memory located at a certain address?

1075


What is property type c?

1051


Explain about C function prototype?

1040


cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration

1072


can anyone suggest some site name..where i can get some good data structure puzzles???

2040


What is the purpose of clrscr () printf () and getch ()?

1036


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

962


Explain what is the benefit of using enum to declare a constant?

1037


What is structure data type in c?

989


Do you know the use of 'auto' keyword?

1145


Can a function argument have default value?

1112


What is the difference between variable declaration and variable definition in c?

1036


Describe the difference between = and == symbols in c programming?

1318


Distinguish between actual and formal arguments.

1028