HOW TO PRINT A NO IN WORDS USING WHILE LOOP THE NO WILL BE
PRINTED WHEN IT WILL BE IN THE RANGE BETWEEN 1 AND 3?
Answer / jay harkhani
class WhileLoop
{
public static void main(String args[])
{
int i=1;
while(i!=4)
{
System.out.println("NO");
i++;
}
}
}
| Is This Answer Correct ? | 5 Yes | 10 No |
Can a class have multiple superclasses?
What is the use of protected in java?
Write a program to reverse a number in java?
Garbage collection in java?
What is the difference between Static and final?
What are the different types of sorting in java?
Can we have more than one package statement in source file ?
What are keywords and reserved words in java?
What are the main differences between notify and notifyAll in Java?
How do you add spaces in java?
Is java 1.7 the same as java 7?
Is map ordered in java?