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

Why do we need a structure?

1037


Can a local variable be volatile in c?

989


Between macros and functions,which is better to use and why?

2218


Is there anything like an ifdef for typedefs?

1147


All technical questions

1987


What is adt in c programming?

1161


Which header file is used for clrscr?

1051


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

1002


List out few of the applications that make use of Multilinked Structures?

2187


What is the purpose of & in scanf?

1066


What is c basic?

1166


how we can make 3d venturing graphics on outer interface

4828


What is the modulus operator?

1208


What are c preprocessors?

1185


Differentiate between full, complete & perfect binary trees.

1091