self Maths Puzzle

What is the value of x after the following code fragment is executed?

a = 9, b = 8, c = 4

if (c divides a) {

if (b > c) {

x = 1

} else {

x = 2

}

} else {

if (c divides b) {

x = 3

} else {

x = 4

}

}

Read Solution (Total 2)

self Other Question

2 runners raj & shabbir take R & S seconds to run around a circular track of 500m.they start from the northern most point at the same time,in the same direction.R & S are prime nos.(R If √(3x + 2) = 3 , then ( 3x + 2 )2 =