Hi, I am new to the forum. I am taking a CS class and this is our first program assignment and I am totally lost.
We have to create a program that reads the following data from a disk: (it must skip the symbols & only print the numbers)
@2,89#3,*67
$187,3#%34,72#123#
*3*7*1#*3,4,8
Once program is read it must read as follows:
289
367
1873
3472
123
371
348
We cannot use extractions, we must used nested loops.
I know how to read the info from disk but I am lost after that.
Professor suggested using sum = 0; sum = sum + digit -- in loops. -- Please just tell me how my loop process should start.