Hacking with the program to find the greatest common factor

$./app Sign detection [1] Power of two [2] Counting No. of bits set [3] Set or clear bits without branching[4] Find maximum value[5] Finding least common multiple[6] Finding the greatest commom divisor[7] 7 Enter the two values for finding GCD: 12 6 GCD is: 6 $./app Sign detection [1] Power of two [2] Counting No. …

Inter-School Sports Meet . Long Jump

Dhanu has the longest jump of 3 metres 40 cm. Gurjeet is second. His jump is 20 cm less than Dhanu’s. Gopi comes third.His jump is only 5 cm less than Gurjeet’s jump. How long are Gurjeet’s and Gopi’s jumps ? [toggle title=”Gurjeet: Answer” float=”left” width=”100px” margin=”0 20px 20px 0″ status=”closed”] 3 metres 20 cm[/toggle] …

2. Inter-School sports meet . Race

Have you heard about marathon races in which people have to run about 40 kilometres ? People run marathon on roads because the track of the stadium is only 400 metres. 10 rounds of a stadium track = —– km [toggle title=”Answer” float=”left” width=”100px” margin=”0 20px 20px 0″ status=”closed”] 4 km[/toggle] So,if you run a …

Inter-School Sports Meet . Race

Have you heard about 1500m or 3000 m race ? (1000 metres make 1 kilometre and 500 metres make half a kilometre) So you can say — In a 1500 metres race people run —– km [toggle title=”Answer” float=”left” width=”100px” margin=”0 20px 20px 0″ status=”closed”] 1.5 km[/toggle] In a 3000 metres race people run —– …

How tall is Jhumpa ?

Jhumpa once read a list of tallest people in the world. One of them was 273cm tall! That is just double of Jhumpa’s height. How tall is Jhumpa ? —— cm. [toggle title=”Answer” float=”left” width=”100px” margin=”0 20px 20px 0″ status=”closed”] 136.5 cm[/toggle]

reading source code and giving math interpretation

static int selinux_enabled = 0; The value of variable “selinux_enabled” is constant 0 of integer type which is not allowed to change. value of selinux_enabled is constant 0 is Proposition p. variable selinux_enabled is of type integer is Proposition q . value of selinux_enabled is not allowed to change is Proposition r. [math] texttt {So. …