DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CSHARP
sum the digits in c#
sum = 0; while (n != 0) { sum += n % 10; n /= 10; }
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#sum
#digits
ADD COMMENT
Topic
COMMENT
Name
5+9 =
Submit