Computer Science, asked by bishtpreeti9012, 2 months ago

write a program to accept 20 different numbers in a single dimensional array display the sum of all the numbers which are divisible by either 3 or 5

Answers

Answered by masoommishra
2

Answer:

Sum of all the elements in an array divisible by a given number K .. ... 7, 17} K = 3 Output : 30 Input : arr[] = {5, 3, 6, 8, 4, 1, 2, 9} K = 2 Output : 20 .

hope it would be helpful...

don't forget to follow me for getting your answers quickly

Answered by kashvi149
0

Answer:

here is your answer

Explanation:

hope it helps

Attachments:
Similar questions