Write a C# program to create a function to calculate the sum of the individual digits of a given number
belongs to collection: All function programs in c# with an examples
All Answers
total answers (1)
belongs to collection: All function programs in c# with an examples
total answers (1)
I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as per your availability..
Result:
Enter a number: 123456
The sum of the digits of the number 123456 is : 21
need an explanation for this answer? contact us directly to get an explanation for this answer