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 variable explain?

1002


Write a program in java to create a doubly linked list containing n nodes.

968


What do you understand by the term string pool?

1011


Write a program to find maximum and minimum number in array?

999


Is java jre still free?

958


Why pointers are not used in java?

1125


What is meant by collection in java?

1064


Can we assign integer value to char in java?

1027


What will happen to the exception object after exception handling?

996


What does bitwise or mean?

1071


Explain listiterator and methods in listiterator?

1016


What is stored procedure. How do you create stored procedure ?

1951


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread

1001


What is parse method?

1014


Do loops java?

1015