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
What is immutability in java?
What is lazy initialization in java?
Describe how to implement singleton design pattern in struts.
Can we sort set in java?
What is java autoboxing?
Why set is used in java?
What is private protected in java?
State the merge-sort principle and its time complexity.
What are the skills required for core java?
What is an infinite loop?
Explain the pointers in Java?
What is the synonym of procedure?
What is the purpose of using break in each case of switch statement?
What is the use of hashmap in java?
What are the benefits of java?