C++ Control Flow Statements 7

Question:12
C++ program to take input for a 4 digit number, calculate and print sum of the digits?
Sol:

Question:13
C++ program to take input for a 4 digit number, calculate and print sum 1 and last digits?
Sol:

Question:14
C++ program to take input for a 4 digit number, calculate and print sum of even digits?
Sol: