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 Posted / 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 |
Post New Answer View All Answers
Which class cannot be a subclass in java?
What is the major difference between linkedlist and arraylist?
What is argument in java?
What is memory leak and how does java handle it?
Can a source file contain more than one class declaration?
What are the 4 types of characters?
When does a class need a virtual destructor?
what is the difference between Object Based Language and Object Oriented Language?
What is the purpose of the System class?
What is private protected in java?
What is a parameter in a function?
What are the types of web technologies?
What is annotation in java?
What are heap memory and stack memory and what are memory tables.
What do you mean by order of precedence and associativity?