Computer Science, asked by farooqueahmad270, 9 months ago

write a program to accept 10 numbers in a single dimensional array display the sum of all the numbers which are divisible by 7.​

Answers

Answered by tanishkajaguri
3

Answer:

· C++ · Java · Python · SQL · PHP · Javascript · Program Output ... Sum of all the elements in an array divisible by a given number K ... 10, 9, 6, 7, 17} K = 3 Output : 30 Input : arr[] = {5, 3, 6, 8, 4, 1, 2, 9} K = 2 Output : 20 ... The idea is to traverse the array and check the elements one by one. ... Python3 program to find sum of.

Similar questions