subject

Write a function that takes a string representing a number and adds each digit together. so "341" becomes the integer 8. your output should be an integer and your function should work for an size string. if the string is one digit long "4" it should just return the integer 4. addstring("567") > 18

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 07:30
An endless cycle of creation and response on the internet is called
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
What is a costume plot? why is it important to a film or theater production?
Answers: 2
question
Computers and Technology, 22.06.2019 17:00
What allows you to create a wireless connection among your smart devices
Answers: 2
question
Computers and Technology, 23.06.2019 11:30
Which excel file extension stores automated steps for repetitive tasks?
Answers: 1
You know the right answer?
Write a function that takes a string representing a number and adds each digit together. so "341" be...
Questions
Questions on the website: 13722367