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


Please Help Members By Posting Answers For Below Questions

Which class cannot be a subclass in java?

748


What is the major difference between linkedlist and arraylist?

735


What is argument in java?

786


What is memory leak and how does java handle it?

774


Can a source file contain more than one class declaration?

741


What are the 4 types of characters?

786


When does a class need a virtual destructor?

761


what is the difference between Object Based Language and Object Oriented Language?

810


What is the purpose of the System class?

789


What is private protected in java?

796


What is a parameter in a function?

759


What are the types of web technologies?

796


What is annotation in java?

809


What are heap memory and stack memory and what are memory tables.

746


What do you mean by order of precedence and associativity?

751