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

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

Is This Answer Correct ?    8 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

1375


Explain null pointer.

1059


explain what is an endless loop?

1052


Write a code to generate a series where the next element is the sum of last k terms.

1186


Write a program to find factorial of a number using recursive function.

1081


Subtract Two Number Without Using Subtraction Operator

800


Explain what is a const pointer?

1052


Do you know pointer in c?

1007


what is the different bitween abap and abap-hr?

2251


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

1042


What are identifiers in c?

1163


Why is c so important?

1007


Why main is used in c?

1025


Explain void pointer?

994


How are Structure passing and returning implemented by the complier?

1136