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

i would really appreciate a quick answer please
( C++) i would really appreciate a quick answer please( C++) 1. (10 points)

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!