Write a C/C++ program to find the sum of digits.

Write a C/C++ program to find the sum of digits.

From the CAAB Assistant Programmer 2022 – Written exam, question 1 of 13.

More from this paper