Feb 27, 2011

26. If a - b = 3 and a^2 + b^2 = 29, find the value of ab.

Ans :10

Explanation:
2ab = (a2 + b2) - (a - b)2
   = 29 - 9 = 20
   ab = 10.

Feb 24, 2011

24. Find the output.

void main()
{
int i=3, *j, k;
j = &i;
printf("%d\n", i**j*i+*j);
}


Answer: 
30

Feb 23, 2011

23. A triangle is made from a rope. The sides of the triangle are 25 cm, 11 cm and 31 cm. What will be the area of the square made from the same rope?


Solution: 
Add all sides 25+11+31 to get rope length rope length =67,rope is made in to as square. So side of square is 67/4=16.75 and so area is 16.75*16.75=280.5625.
Ans : 280.5625