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

What is the use of void pointer and null pointer in c language?

1165


Is printf a keyword?

1259


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

1229


What is the time and space complexities of merge sort and when is it preferred over quick sort?

1133


Distinguish between actual and formal arguments.

1125


What is the difference between malloc() and calloc()?

1970


What is identifiers in c with examples?

1240


What is substring in c?

1257


Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

3211


How can a string be converted to a number?

1066


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1431


Discuss the function of conditional operator, size of operator and comma operator with examples.

1207


What is meant by realloc()?

1200


Whats s or c mean?

1083


What does p mean in physics?

1095