![SOLVED: Write a C program that gets a string from the user and counts total number of digits in that string. Assume that the size of your string is 10. Use isdigit() SOLVED: Write a C program that gets a string from the user and counts total number of digits in that string. Assume that the size of your string is 10. Use isdigit()](https://cdn.numerade.com/ask_previews/413b70-b41-ab57-b840-2e32fa4884c_large.jpg)
SOLVED: Write a C program that gets a string from the user and counts total number of digits in that string. Assume that the size of your string is 10. Use isdigit()
![CS 1400 Chapter 10 Strings. Character testing library #include bool isalpha (char c); bool isalnum (char c); bool isdigit (char c); bool islower (char. - ppt download CS 1400 Chapter 10 Strings. Character testing library #include bool isalpha (char c); bool isalnum (char c); bool isdigit (char c); bool islower (char. - ppt download](https://images.slideplayer.com/16/5001383/slides/slide_3.jpg)
CS 1400 Chapter 10 Strings. Character testing library #include bool isalpha (char c); bool isalnum (char c); bool isdigit (char c); bool islower (char. - ppt download
![Trying check if each character is a digit. It's not working. It says "success 50" twice whether I input "50" or "50x". Can anybody explain why this is happening? : r/cs50 Trying check if each character is a digit. It's not working. It says "success 50" twice whether I input "50" or "50x". Can anybody explain why this is happening? : r/cs50](https://preview.redd.it/zypyuz2lwsh61.png?width=1032&format=png&auto=webp&s=0a168fbd64b1ef9d8cea69ffcfad702e00e29c87)