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 a numbers from 1 to 100 with out using control
structures?

Answer Posted / friend

int i = 1;
System.out.println(i++);
System.out.println(i++);
System.out.println(i++);
System.out.println(i++);
System.out.println(i++);
....................
......................
..................
................

Is This Answer Correct ?    7 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is final int?

1025


what is anonymous class in java?

1035


What are the two basic ways in which classes that can be run as threads may be defined?

1075


What is the difference between jfc & wfc?

1072


What are the different conditional statements?

994


What is object-oriented paradigm?

1067


Can final class have constructor?

927


What is the order of arraylist in java?

1138


Can we have try without catch block?

1081


What is dynamic binding(late binding)?

1051


What are the restrictions that are applied to the java static methods?

986


Explain jvm, jre, and jdk?

1017


Is java call by value?

1095


What are serialization and deserialization?

1266


What is e in java?

963