TCS
Company
what is the sum of all integers between 99 and 301?
a)40000
b)20000
c)40200
d)20200
Read Solution (Total 2)
-
- The Sum of first n consecutive integers = n* (n+1)/2
Sum of the first 99 integers = (99 * 100)/2=4950
Sum of first 301 integers = (300* 301)/2=45150
Hence Sum of integers between 99 and 301 is
45150-4950=40200(ans)
- 12 years agoHelpfull: Yes(24) No(4)
- Even integers are 100,102,104,....300
now 100+300 =400
102+298 =400
104+296 =400
..........
..........
198+202 =400... this is 50th summation..
and last term is 200
so the answer is 50*400 + 200 = 20200 - 12 years agoHelpfull: Yes(11) No(5)
TCS Other Question