Showing posts with label Program 17. Show all posts
Showing posts with label Program 17. Show all posts

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: