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 to print the below in java?thanks in advance....
*
* *
* *
* *
*

Answer Posted / jitendra

for(i=1;i<=3;i++)
{
for(j=3;j>=i;j--)
System.out.printf(" ");
System.out.printf("*");
for(j=1;j<2+i;j++)
System.out.printf(" ");
System.out.printf("*");
System.out.printf("\n");
}
this is to print
*
* *
* *
now apply ur brain to print the rest...
any problem ..then mail me
jitendrasharma13@gmail.com

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does function identity () do?

949


I don’t want my class to be inherited by any other class. What should I do?

1002


Difference between serialization and deserialization in java?

1120


What are the drawbacks of reflection?

997


What data structures are used to perform recursion?

1038


What are void pointers?

1282


What is the difference between stringbuffer and stringbuilder class?

1084


What are the types of strings?

1009


What is string and its types?

1161


In which language java is written?

959


What is the default access specifier for variables and methods of a class?

1185


What are the important methods of java exception class?

1082


Which class should you use to obtain design information about an object in java programming?

1057


Does treeset allow null in java?

934


What is a boolean in java?

1037