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 treeset and treemap in java?

1063


Name few java.lang classes introduced with java 8 ?

981


Can memory leak in java?

1029


How to make a read-only class in java?

1153


What is the purpose of main function in java?

1022


What are the different collection views provided by maps?

982


What is method reference?

972


Write a java program to generate fibonacci series ?

1067


What are the main uses of the super keyword?

964


Can finally block be used without a catch?

1005


What is the final variable?

1237


What are advantages of using Java?s layout managers than windowing systems?

2366


Does treeset allow null in java?

943


Can a abstract class be declared final?

988


Define nashorn in java8.

1031