Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are autoboxing and unboxing? When does it occur?

1015


What is the argument in java?

988


Define how can we find the actual size of an object on the heap?

1285


Difference between abstract and concrete class ?

1266


What do you understand by classes in java?

1047


Is arraylist dynamic in java?

1058


What is meant by vector class, dictionary class, hash table class, and property class?

1235


What is a java predicate?

1017


What is the significance of listiterator?

1175


What is the synonym of procedure?

1203


How do you pass by reference?

1107


What is the size of int in 64-bit jvm?

1179


What is functional interface in java?

1095


How does a for loop work?

1040


How do you do exponents in java?

1100