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

How is it possible in java programming for two string objects with identical values not to be equal under the == operator?

1026


What is math in java?

1059


a thread is runnable, how does that work? : Java thread

1015


What are the string methods in java?

1097


Explain differences between collection api and stream api?

1184


What are the core java topics?

1053


Explain java coding standards for methods?

1047


What are instance variables?

1078


What is a generic data type?

1043


What are the library functions in java?

1045


How do you do exponents in java?

1059


What is the difference between super class & sub class?

1196


Can we call thread start () twice?

964


What is the purpose of format function?

1181


What is variable and constant explain with example?

1097