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