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 immutability in java?

1030


What is lazy initialization in java?

938


Describe how to implement singleton design pattern in struts.

948


Can we sort set in java?

906


What is java autoboxing?

900


Why set is used in java?

952


What is private protected in java?

991


State the merge-sort principle and its time complexity.

915


What are the skills required for core java?

948


What is an infinite loop?

1131


Explain the pointers in Java?

991


What is the synonym of procedure?

1012


What is the purpose of using break in each case of switch statement?

958


What is the use of hashmap in java?

1023


What are the benefits of java?

1086