write a program in c language to print all integers which are divisible by 7 between 100 and 200
Answers
Answered by
0
Answer:
Given;
Find the sum of all the numbers between 100 and 200 which are divisible by 7
The smallest number in between 100 and 200 which is divide by 7 = 105 and
The largest number in between 100 and 200 which
is divide by 7 = 196
Here,
smallest number(a) = : 105
largest number (an = 196
All no divide by (d) = 7
We know,
an = a + (n 1)d
Plug all value in above equation;
196 105+ (n − 1)7
→ 7n - 7 = 196 - 105
→ 7n = 91 +7
98 7
n = 14
..The sum of all the numbers between 100 and 200 which are divisible by 7 is equal to,
814 = (a + an)
S14 =
⇒ 814 = (105+196)
$147 x 301
814 = 2107
..The sum of all the numbers between 100 and 200 which are divisible by 7 is 2107
Similar questions