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...

how can i get this by using for loop?
*
**
*
****
*
******

Answer Posted / suman_kotte

int i,j;
for(i=1;i<=3;i++)
{
print("*");
print("\n");
for(j=1;j<=i*2;j++)
print("*");
print("\n");
}

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to reverse a given number in c?

1039


What is the heap in c?

1083


How can I prevent another program from modifying part of a file that I am modifying?

1061


What is the difference between Printf(..) and sprint(...) ?

1540


What is the c value paradox and how is it explained?

1060


What are the different types of pointers used in c language?

1050


Suggesting that there can be 62 seconds in a minute?

1049


What is clrscr ()?

1110


What is console in c language?

1101


Write a program to print “hello world” without using semicolon?

1123


Is there any possibility to create customized header file with c programming language?

1065


How do I use strcmp?

1079


What is wild pointer in c?

1076


What is the newline escape sequence?

1078


is it possible to create your own header files?

1107