Wednesday, 12 August 2020

Program 17

 Program 17

Write a function called sum_digits that is given an integer num and returns the sum of the digits of num.

Program:

Output:

No comments:

Post a Comment