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

How do you use compareto?

903


Can we nested try statements in java?

1054


What are design patterns and please explain?

1048


Can you give few examples of final classes defined in java api?

967


What is method with example?

1045


Can we overload the methods by making them static?

959


How does sublist works in java?

922


How are destructors defined in java?

1002


How does indexof work?

909


How do you invoke a method?

966


What is java basic concept?

990


Which variable is the independent variable?

944


What is Garbage Collection in Java

1043


what is the final keyword denotes in java?

1041


Is sizeof a keyword in java programming?

1030