Computer Science, asked by bearmochi78, 7 months ago

Find output 3:

int s=0;
int i=5;
while(i++<=10)
{
s+=i;
if(i%2==0)
{
continue;
}
if(i%3==0)
{
break;
}

i++;
}
System.out.println("Sum="+s);

NO SPAM​

Answers

Answered by rajguttedar3
0

Explanation:

Find output 3:

int s=0;

int i=5;

while(i++<=10)

{

s+=i;

if(i%2==0)

{

continue;

}

if(i%3==0)

{

break;

}

i++;

}

System.out.println("Sum="+s);

NO SPAM

Similar questions