GoodMorning every body.. I hope all are will
i want help from any one how know the answer to the following Q:
write c program that read an integer value (4-digits only) then display the sum of its digits.
Note_ Display an appropiate message if the user entered any value consists of more than or less than 4 digits.
Example:
123 Display the message(not allowed...try again)
1234 calucate the sum of 1+2+3+4=10
12345 Display the message(not allowed...try again)
And so on.
please help i want the answer .. i try to solve it but it no came correct
i wait our help