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

Write a Program to print this triangle:
*
**
*
****
*
******
*
********
*
**********
use two nested loops.

Answer Posted / naman patidar

void main() {
int n = 5 ; // take use input here
int i, j;
for( i =1; i<=n; i++){
printf("\n *");
for(j=0; j<=i; j++){
printf(" *");
}
}
}

Is This Answer Correct ?    23 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is malloc and calloc?

1070


What are the different properties of variable number of arguments?

1170


In C language what is a 'dangling pointer'?

1179


What is a stream in c programming?

1168


What are 'near' and 'far' pointers?

1056


What is void main ()?

1084


Explain a pre-processor and its advantages.

1148


Is main is a keyword in c?

1138


given post order,in order construct the corresponding binary tree

2803


What Is The Difference Between Null And Void Pointer?

1277


Write the test cases for checking a variable having value in range -10.0 to +10.0?

2332


What are derived data types in c?

1100


What does struct node * mean?

1030


What is a file descriptor in c?

1147


Does c have circular shift operators?

1267