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

In C language, a variable name cannot contain?

1244


Is c object oriented?

934


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15767


Which function in C can be used to append a string to another string?

1187


What is putchar() function?

1108


write a program to generate address labels using structures?

4539


Explain what is the difference between a string and an array?

1124


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1494


Are comments included during the compilation stage and placed in the EXE file as well?

1051


What is variable declaration and definition in c?

874


What is the use of bitwise operator?

1089


What is the scope of static variable in c?

970


What is meant by inheritance?

1066


How we can insert comments in a c program?

1093


What are the two types of structure?

1060