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 3)
-
- ans. 150
the second value results to 100, and then from 50th to 99th no we will have values greater than or equal to 1 which results 1*50 = 50
thus soln = 150....
but may be the question is typed wrong and the second term should be int(1/2+1/100) .. if so the soln is 50 - 11 years agoHelpfull: Yes(17) No(6)
- int(1/2)+int(1/2+100)+int(1/2+2/100)+....+int(1/2+99/100)
1st term will be 0
2nd term will be 100
from int(1/2+2/100) to int(1/2+49/100) will give 0 each(48 terms)
from int(1/2+50/100) to int(1/2+99/100) will give 1 each(50 terms)
the value will be 100+1*50=150 - 11 years agoHelpfull: Yes(7) No(1)
- the answer shud be 0.. since in all the cases the x part is 0..
since thr is a typo mistake in the 2nd term of the qsn...
the qsn says int(x) is less than or equal to zero.. here in all the case the integer part is zero..
thus the sum will be 0 - 11 years agoHelpfull: Yes(1) No(3)
TCS Other Question