I just started studying programming and I simply can't figure out the loops
I need to write a program using loops for this problem:
From standard input characters are being read(from some text that consist of different characters) until the character dot is read. In this text there are couple of hidden non-zero numbers (less than 100). Make a program that will read all those characters and will print the sum of all the hidden numbers on the standard output.
Sample input:
Weiur23j sdlkj22lkadad 21kjs 20sdkjsd.
Sample output:
86
Can anyone please help me?