New course! Every coder should learn Generative AI!
Try a free lesson0
Write a C++ program that accepts an integer number and prints the following: 1) Sum of even factors of the number
2) Sum of digits of the number. 3) “Prime” if the number is prime
1 Answer
+ 2
Where's your attempt?