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 |
How to do encapsulation in java?
What are field variable and local variable?
How can we create a thread in java?
how to use crystal reports in java
Explain the advantages of packages in java?
What is math exp in java?
What is classes in java?
Why do we need singleton?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
What are selection structures?
How do you use nextline in java?
What is the return type of readLine() when end of a file is reached?