- 1
Help me please..
Create a function which receives a pointer of array as a parameter and calculates the sum of prime numbers and sum of non_prime numbers in that array. Then compares them to find out which one is larger (sum of prime or sum of non_prime). Return both sum of prime and sum of non_prime numbers also and print those in the main function.
1 ответ
+ 2
Where is your code?
Post a link to what you have tried so far, and explain where you are having trouble.