How many times the following loop executes and what will be the output? public class Test3 {
public static void main(String[] args)
{
int p=250;
while(true)
{
if(p<100) break;
p=p-20;
}
System.out.println(p);
Share
How many times the following loop executes and what will be the output? public class Test3 {
public static void main(String[] args)
{
int p=250;
while(true)
{
if(p<100) break;
p=p-20;
}
System.out.println(p);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
0 Replies