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 an array in c?

1051


what is the different bitween abap and abap-hr?

2318


Explain what is the benefit of using const for declaring constants?

1030


What is the purpose of main() function?

1243


How can I handle floating-point exceptions gracefully?

1171


what are the facialities provided by you after the selection of the student.

2252


what are non standard function in c

1908


What is derived datatype in c?

1090


Is a pointer a kind of array?

1178


Explain the difference between call by value and call by reference in c language?

1113


Explain what is the difference between the expression '++a' and 'a++'?

1214


Define the scope of static variables.

1130


How do you declare a variable that will hold string values?

1172


How to write a code for reverse of string without using string functions?

2143


How can I copy just a portion of a string?

1308