Question: i would really appreciate a quick answer please ( C++) 1. (10 points) Write a C++ program that asks the user to enter a positive
1. (10 points) Write a C++ program that asks the user to enter a positive integer, and then checks whether the sum of its digits is an even number; if the sum is even, the program should output "Yes", otherwise, the program should output "No". For example: 114 has a digit-sum of 1+1+4+6 which is even, so on this input the program outputs "Yes". On the other hand, 214 has a digit-sum of 2+1+4=7 which is odd, so on this input the program outputs "No". Sample input/output of the program (user input is shown in bold font) Please Enter a positive integer: 9825 Yes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
