There are three parts to this:
1) Read the line of text - this is trivial, and I assume you know how to do that.
2) Add the digit values together
3) Print the result - again this is trivial.
The middle bit is a little complicated to think about, but it's really pretty easy:
1) Set up a "total" variable, and start it at zero.
2) Loop through each character in the input.
2.1) If the character isn't a digit, ignore it, or report a problem and stop.
2.2) Otherwise, convert it to an integer value. This sounds complicated, but it isn't:
char c = '2';
int x = (int) (c - '0');
Will leave the value two in the variable
x
2.3) Add the new value into the total
2.4) Repeat for next character at (2) until you run out of characters.
And the loop is realy easy:
foreach (char c in myInputString)
{
...
}
So give it a try, and see how far you get. It's pretty simple now you have all the pieces.