Mantaslajm / Homework

0 stars 0 forks source link

sum_of_digits: You are not following the assignment when defining sum_of_digits function #6

Open alv2017 opened 1 year ago

alv2017 commented 1 year ago

Assignment 1

a) Write a function that takes an integer as input and returns the sum of digits of an integer as an output. The input number must be positive, and the number of digits of the input number should be in [1, 10] interval.

Mantaslajm commented 1 year ago

I updated (fix issues) i dont really get what function has to do as i understand user put in number and function return sum while also check if it is not negative and number not longer then 10 digits

2023-04-07, pn, 22:48 alv2017 @.***> rašė:

Assignment 1

a) Write a function that takes an integer as input and returns the sum of digits of an integer as an output. The input number must be positive, and the number of digits of the input number should be in [1, 10] interval.

— Reply to this email directly, view it on GitHub https://github.com/Mantaslajm/Homework/issues/6, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6KR5FCGCQAZTK72E3NXYC3XABVRJANCNFSM6AAAAAAWW32XKM . You are receiving this because you are subscribed to this thread.Message ID: @.***>