Answers

The Brainliest Answer!
2014-07-26T11:13:21+05:30
class DigitSum
{
public static void main(String args[])
 {
int i,a=0, sum=0; i=Integer.parseInt(args[0]);
//choose you integer
(i!=0) { a=i%10; i=i/10; sum=sum+a;
}
System.out.println(sum);
  } 
Hope it helps you out (:
2 5 2