TCS
Company
For real number x, int(x) denotes integer part of x.int(x) is the largest integer less than or equal to x.int(1,2)=1,int(-2,4)=-3.
Find the value of int(1/2)+int(1/2+100)+int(1/2+2/100)+....+int(1/2+99/100)
Read Solution (Total 7)
-
- i too dont know how to solve but in 17th page i found the same que
ANS:
int(1/2)=0
int(1/2+100)=100
int(1/2+2/100)=0
int(1/2+3/100)=0
.....
int(1/2+50/100)=int(100/100)=1
.......
int(1/2+99/100)=int(1.49)=1
by adding all those values
we will get 150
in this the they have taken integers i.e rounded values
- 11 years agoHelpfull: Yes(20) No(2)
- sandy! how u added all the values...100+1+1=102
150? how? - 11 years agoHelpfull: Yes(2) No(0)
- @ ADITYA
int(1/2+100)=100
AFTER THIS
FROM int(1/2+2/100) UPTO int(1/2+49/100) ARE ROUNDED AS 0
FROM int(1/2+50/100)UPTO int(1/2+99/100) ARE ROUNDED AS 1 SO 100[int(1/2+100)]+50[FROM int(1/2+50/100)UPTO int(1/2+99/100)]=150
*!!!HERE SUM LESS THAN 1(i.e,0.99,0.98.......0.1) ARE ROUNDED 0
SIMILARLY SUM FORM 1 TO 1.99 ARE ROUNDED TO 1
- 11 years agoHelpfull: Yes(2) No(0)
- @ SANDHYA
int is nothing but integer
we know that 1/2=0.5
but here SUM BETWEEN 0 AND 0.99 IS TAKEN AS 0
AND SUM BETWEEN 1 TO 1.99 IS TAKEN AS 1 - 11 years agoHelpfull: Yes(2) No(0)
- very good sandy...............
- 11 years agoHelpfull: Yes(1) No(0)
- answer is 150.
- 11 years agoHelpfull: Yes(0) No(0)
- can u xpln me...further @durgesh plsssssssss
- 11 years agoHelpfull: Yes(0) No(1)
TCS Other Question