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...

code snippet for creating a pyramids triangle
ex

1
2 2
3 3 3

Answer Posted / manvi

main()
{
int i,j,n;
printf("enter the limit");
scanf("%d",&n);
for(i=1;i<=n;i++)
{

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

}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define Spanning-Tree Protocol (STP)

1078


What are # preprocessor operator in c?

1057


What is typeof in c?

964


What is sizeof array in c?

993


When should you use a type cast?

1064


What is a static function in c?

1120


Explain modulus operator. What are the restrictions of a modulus operator?

974


Explain how can I convert a string to a number?

1036


How can type-insensitive macros be created?

1139


What does *p++ do? What does it point to?

1011


What are the similarities between c and c++?

1018


Is exit(status) truly equivalent to returning the same status from main?

1014


What is the best way of making my program efficient?

975


How do you list files in a directory?

1090


What is a wrapper function in c?

1079