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 final int?
what is anonymous class in java?
What are the two basic ways in which classes that can be run as threads may be defined?
What is the difference between jfc & wfc?
What are the different conditional statements?
What is object-oriented paradigm?
Can final class have constructor?
What is the order of arraylist in java?
Can we have try without catch block?
What is dynamic binding(late binding)?
What are the restrictions that are applied to the java static methods?
Explain jvm, jre, and jdk?
Is java call by value?
What are serialization and deserialization?
What is e in java?