Write a program that prompts the user for string, extract all the digits from the strings. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a program that prompts the user for string, extract all the digits from the strings.

if there are digits sum and print the original digit and if there are not ; print"has no digits".

11th Sep 2019, 12:14 AM
Shivam Kumar
Shivam Kumar - avatar
1 Answer
0
help
11th Sep 2019, 12:14 AM
Shivam Kumar
Shivam Kumar - avatar