Question: Problem 2 A digit is a character in the range 0-9 Write a function to count the number of digits in a string. Your function

 Problem 2 A digit is a character in the range 0-9

Problem 2 A digit is a character in the range 0-9 Write a function to count the number of digits in a string. Your function should take one parameter: o a string parameter Your function should return the number of digit characters in the string . Your function should not print anything. .Your function MUSTbe named getDigitCount Examples: "12345 "a blue house" 0 digits "a0aaa" "abre1567" "009cD8" "196$09bf&^" -> 1 digit >5 digits -> 1 digit -> 4 digits -> 4 digits

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!