Math, asked by deepuseth2919, 11 months ago

Find the sum of all 4 digit number which are divisible by 29

Answers

Answered by dejini
2

Answer:

FOR I GOES FROM 1 TO 9

FOR J GOES FROM 0 TO 9

FOR K GOES FROM 0 TO 9

FOR L GOES FROM 0 TO 9

IF ( ( (1000*I+100*J+10*K+L) MOD 29) = 0 ) AND ((I+J+K+L)=29) THEN

OUTPUT I,J,K,L

NEXT L

NEXT K

NEXT J

NEXT I

4988

7598

7859

9686

9947

There are 5 such numbers.

hope it helps you

follow me

Answered by joshika34
1

sorry I don't know that

Similar questions