| |
GeekInterview.com > Placement Papers > IBM
| Print | |
Question: 1.If + is replaced by *,* is replaced by -,- is replaced by / ,/is replaced by% nad % is replaced by + then what is the value of the following expression.
25-3+32/5%2 35-2+4/3%42 25+4-5%6*7
Answer: pls explain how to solve this.specialy the operation of modulus operator. |
| July 07, 2007 06:26:25 |
#1 |
| arati_2485 |
Member Since: Visitor Total Comments: N/A |
RE: 1.If + is replaced by *,* is replaced by -,- is re... |
Ans is 3 , 44 , 19
In 1st que. after replacement que. is 25/3*32%5+2 = 8*32%5+2 = 256%5+2 = 1+2 = 3 In 2nd replacement que. is 35/2*4%3+42 = 44 In 3rd is 25*4/5+6-7 = 19
While solving this type of question remember always solve bracket first then /,*,% this thing everybody knows but important thing is these three operations always solve frm left to right always & +,- is always from right to left. |
| |
Back To Question | |