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

void main()
{
int i,j;
for(i=0;i<3;i++){
for(j=0;j<i;j++){
printf("*");
printf("\n");
}
}
}

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how could explain about job profile

1859


What are the 32 keywords in c?

1045


Explain what are compound statements?

997


Write a program to generate the Fibinocci Series

1164


What language is lisp written in?

1170


What is #include called?

998


How can I read/write structures from/to data files?

925


int i=10; printf("%d %d %d", i, i=20, i);

1550


Can variables be declared anywhere in c?

1038


Which is better pointer or array?

978


The statement, int(*x[]) () what does in indicate?

1088


What is uint8 in c?

1056


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

1198


What is openmp in c?

972


Can we replace the struct function in tree syntax with a union?

1241