Math, asked by Pritigiri6076, 1 year ago

Program to find sum of all integers between 100 to 9000 and are divisible by 7 in c

Answers

Answered by anithaajith1981
4

Hey mate,

Here is ur answer

Hope it is helpful

Plz mark me brainliest

Attachments:

Anonymous: well answerd
Answered by slicergiza
1

Answer:

5783050

Step-by-step explanation:

Since, integers between 100 to 9000 that are divisible by 7,

105, 112, 119, .......... 8995,

Which is an AP,

Having first term, a = 105,

d = 7,

Last term, l = 8995

Let n be the total number of terms,

\implies a + (n-1)d = l

105 + (n - 1)7 = 8995

7(n-1) = 8890

n - 1 = 1270

\implies n = 1271

Hence, the sum of the above AP,

S_{1271}=\frac{1271}{2}(2(105)+(1271-1)7)

=\frac{1271}{2}(210+1270(7))

=\frac{1271}{2}(9100)

=1271\times 4550

= 5783050

Hence, the sum of all integers between 100 to 9000 and are divisible by 7  is 5783050.

Similar questions