Computer Science, asked by prashisharma, 22 days ago

QUESTION 4:Give the outputs
[10]
1) int x= -10;Boolean b =true;
while (b)
{ if (x<0)
{X++; continue;)
else
break;
System.out.println(x);​

Answers

Answered by SujalBendre
3

Answer:

Number 53934 is divisible by 3.

Divisibility Rule of 5:

The number is divisible by 5 if the last digit is 0 or 5.

=> 53934 = Last digit is not 0 or 5.

Divisibility Rule of 4:

The number is divisible by 4 if the last two digits are divisible by 4.

=> 53934 = Last two digits 34 is not divisible by 4.

Divisibility Rule of 3:

The number is divisible by 3 if the sum of the digits is divisible by 3.

=> 53934 = 5+3+9+3+4 = 24.

=> 24 is divisible by 3, so the number 53934 is divisible by 3.

Divisibility Rule of 8:

The number is divisible by 8 if the last three digits are divisible by 8.

=> 53934 = 934 is not divisible by 8.

Hence, 53934 is divisible by 3 so the required answer is 3.

Similar questions