Programming Practice
A blog posting problems and tutorials for blog visitors to practice and gain experience.
AD1
Monday, 14 November 2016
Write a recursive function to calculate the sum of digits of an integer
write a recursive function that accepts an integer and finds sum of its digits , as example sum(2370) will print 12
solution
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment