Computer Science, asked by umapal7708, 1 year ago

Write the algorithm to find the sum of all the numbers divisible by 3 between 11 and 50

Answers

Answered by pradnyeshlm21
5

Given a=12 n =?

d=3

So

To find sn

L =48

N =a+(n-1)d

N= 12+(n-1)3

N=12+3n-3

N=9+3n

48-9=3n

39=3n

N= 13

As value of n is 13

Sn =S13

S13=13/2+(2a+(12×d))

S13=13/2(2×12+(12×3))

S13=13/2(24+36)

S13=13/2(60)

S13=13/2×60

S13=13×30

S13=390

Hence sum of all no. Divisible by 3 in between 12-50 is 390.

Mark me as brainliest pls


pradnyeshlm21: Can u mark me brainliest pls
Similar questions