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
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
0
Answer:
here is your answer
Explanation:
hope it helps
Attachments:
Similar questions
India Languages,
2 months ago
Physics,
2 months ago
Science,
4 months ago
Math,
10 months ago
Social Sciences,
10 months ago
Hindi,
10 months ago